Markdown to Typst escapes # #10316
Replies: 5 comments 5 replies
-
Yes, you can use the
|
Beta Was this translation helpful? Give feedback.
-
@kravlost -- this excellent Lua filter supports Typst and allows you to use a generic https://github.com/pandoc-ext/pagebreak
|
Beta Was this translation helpful? Give feedback.
-
@jgm If I add a Typst page setup block at the top of a markdown file introduced with
and complile to PDF via typst, there is an extra blank page at the top of the PDF. If I export to Typst and then complile it through Typst, there is no extra page. Minimum example saved to
Compliled with: |
Beta Was this translation helpful? Give feedback.
-
I'm seeing the blank page in both cases: direct to pdf with pandoc or produce standalone typst and then compile with typst. |
Beta Was this translation helpful? Give feedback.
-
Note that the blank page is the title page. If you specify a title, it will not be blank. Instead of adding this command to set the page parameters, why not use the variables already encoded in the default template?
or set them in a defaults file. |
Beta Was this translation helpful? Give feedback.
-
I want to add a page break by writing
#pagebreak()
in Markdown, but if I convert it to Typst or use Typst to convert the Markdown to PDF, then the # is escaped to \# and Typst ignores it.Is there a way of getting pandoc to transfer a # to Typst without escaping it so I can write Typst functions in Markdown?
Pandoc 3.5 on Windows 11.
Beta Was this translation helpful? Give feedback.
All reactions