Skip to content

Commit 72452ee

Browse files
committed
pandoc, format extensions - Don't use yet new table_attributes extension
This new syntax is like the one in Quarto ```` : Here's the caption. {#ident .class key="value"} ```` So it needs some adaptation to work with our crossref system to avoid duplicate ids.
1 parent 961363a commit 72452ee

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/resources/pandoc/datadir/readqmd.lua‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ local function readqmd(txt, opts)
138138
end
139139
end
140140

141+
-- ### Opt-out some extensions that we know we won't support for now ###
142+
-- https://pandoc.org/MANUAL.html#extension-table_attributes
143+
-- https://github.com/quarto-dev/quarto-cli/pull/13249#issuecomment-3715267414
144+
flavor.extensions["table_attributes"] = false
145+
141146
-- Format flavor, i.e., which extensions should be enabled/disabled.
142147
local function restore_invalid_tags(tag)
143148
return tags[tag] or tag

0 commit comments

Comments
 (0)