Since we use typst:no-figure on our tables (implemented in jgm/pandoc#9778), Pandoc may not enclose tables in blocks.
Unfortunately, when the Pandoc Typst writer encounters typst:text:fontor typst:text:size on a table, it emits #set text(...) before the table, which will affect the entire scope.
Since we use
typst:no-figure
on our tables (implemented in jgm/pandoc#9778), Pandoc may not enclose tables in blocks.Unfortunately, when the Pandoc Typst writer encounters
typst:text:font
ortypst:text:size
on a table, it emits#set text(...)
before the table, which will affect the entire scope.E.g.
Normal paragraph text.
Oops!
One way to correct the Typst output is to wrap the
set text
+ table in#[...]
:Plan:
#[]
block, to our Typst post-processing filter here:https://github.com/quarto-dev/quarto-cli/blob/412ea639aec65a500d83134bd3202a8b799aca55/src/resources/filters/quarto-post/typst.lua#L122-L126