Add support for reading typst pagebreak (#11126)

The pagebreak is parsed as a HorizontalRule inside a wrapper Div with class `page-break`.

Closes #11101.
This commit is contained in:
Raymond Berger
2025-09-10 09:56:16 +02:00
committed by GitHub
parent 71a0c5c61e
commit c93acab035
2 changed files with 16 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
```
% pandoc -f typst -t native
First paragraph.
#pagebreak()
Second paragraph.
^D
[ Para [ Str "First" , Space , Str "paragraph." ]
, Div
( "" , [ "page-break" ] , [ ( "wrapper" , "1" ) ] )
[ HorizontalRule ]
, Para [ Str "Second" , Space , Str "paragraph." ]
]
```