diff options
| author | Raymond Berger <[email protected]> | 2025-09-10 03:56:16 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-09-10 09:56:16 +0200 |
| commit | c93acab035e9f7f3576199ce1bf4009cc4530dcf (patch) | |
| tree | 587d084090bf7d18aacd69b69adc58c215c676a1 /src/Text | |
| parent | 71a0c5c61ef303b3d7889a3a1e0d26f0b92c59d8 (diff) | |
Add support for reading typst pagebreak (#11126)
The pagebreak is parsed as a HorizontalRule inside a wrapper Div with class `page-break`.
Closes #11101.
Diffstat (limited to 'src/Text')
| -rw-r--r-- | src/Text/Pandoc/Readers/Typst.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/Typst.hs b/src/Text/Pandoc/Readers/Typst.hs index cf869bd73..535038c16 100644 --- a/src/Text/Pandoc/Readers/Typst.hs +++ b/src/Text/Pandoc/Readers/Typst.hs @@ -396,6 +396,7 @@ blockHandlers = M.fromList getField "body" fields >>= pWithContents pBlocks) ,("pad", \_ _ fields -> -- ignore paddingy getField "body" fields >>= pWithContents pBlocks) + ,("pagebreak", \_ _ _ -> pure $ B.divWith ("", ["page-break"], [("wrapper", "1")]) B.horizontalRule) ] inlineHandlers :: PandocMonad m => |
