Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pandoc: escape HTML option

While other markdown implementations have a switch to escape HTML, I couldn't find one for Pandoc.

I want Pandoc to convert HELLO <blink>WORLD</blink> to <p>HELLO &lt;blink>WORLD&lt;/blink></p>.

Kramdown and Maruku don't seem to support this, how about Pandoc?

like image 679
Joshua Muheim Avatar asked Mar 06 '26 02:03

Joshua Muheim


1 Answers

You can disable the extension raw_html by using this command to compile:

pandoc -f markdown-raw_html -t html

Although the output does not exactly matches your expected output because it will also transform > to &gt;.

like image 142
scoa Avatar answered Mar 08 '26 21:03

scoa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!