jgm / pandoc

Universal markup converter
https://pandoc.org
Other
34.78k stars 3.39k forks source link

Markdown to Typst escapes # #10313

Closed kravlost closed 1 month ago

kravlost commented 1 month ago

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.