mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-01 13:15:51 +00:00
Typst allows things like `smallcaps` to be applied to block-level content like headings. This produces a type mismatch in pandoc, so before processing the output of typst-hs, we transform it, pulling the block-level elements outside of the inline-level elements. Closes #11017.
10 lines
112 B
Markdown
10 lines
112 B
Markdown
```
|
|
% pandoc -t markdown -f typst
|
|
#show heading: smallcaps
|
|
|
|
= Introduction
|
|
^D
|
|
# [Introduction]{.smallcaps}
|
|
|
|
```
|