mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
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:
@@ -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." ]
|
||||
]
|
||||
```
|
||||
Reference in New Issue
Block a user