Typst rule does not work on markdown table #10875
-
Bug descriptionI want to define a show rule to center the first row of the table. The rule works on a Typst table (embedded in a Typst chunk), but does not work on a Markdown table. I'm not sure I'm using Typst properly though. Steps to reproduce
Expected behaviorThe first row of the markdown table is centered. Actual behaviorThe first row of the markdown table is not centered. Your environment
Quarto check output
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Please consider a Q&A post before filing a bug report. I'm going to convert this to discussions. |
Beta Was this translation helpful? Give feedback.
-
This happens because you have specified left alignment for all columns with This causes Pandoc to add column alignment
to the table, and this takes precedence over your show rule. One way to get the effect you want is to remove the alignment specification from your markdown table and instead set default left cell alignment via a show rule instead:
|
Beta Was this translation helpful? Give feedback.
This happens because you have specified left alignment for all columns with
:----
This causes Pandoc to add column alignment
to the table, and this takes precedence over your show rule.
One way to get the effect you want is to remove the alignment specification from your markdown table and instead set default left cell alignment via a show rule instead: