Pandoc: escape HTML option

南笙酒味 提交于 2021-02-10 06:41:28

问题


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?


回答1:


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;.



来源:https://stackoverflow.com/questions/37165374/pandoc-escape-html-option

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!