brace tables with typst:no-figure and typst:text attributes #10563
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The combination of #9648
typst:text:*
property output and #9778typst:no-figure
can cause fonts, text sizes, etc. to spill out of tables in Typst output.This is because setting Typst text properties across a table requires
#set text(...)
outside the table, and previously we were relying on the figure to provide a scope.Example:
produces
This PR provides the minimal fix, only adding an extra
#[...]
when the table has classtypst:no-figure
and also hastypst:text:*
attributes.We work around this bug in Quarto in quarto-dev/quarto-cli#11113, but it would be better to have the fix in Pandoc because it could affect other users of these features.
Ref quarto-dev/quarto-cli#11093
@cscheid