1

I need markdown only for what options its syntax offers.

So I don't want it to interpret inline HTML (e.g. <span>hello</span>), but it should display those tags as text.

Is there a way to disable this? Or should I simply search and replace each and every < and > with a &lt; and &gt?

Joshua Muheim
  • 12,617
  • 9
  • 76
  • 152

1 Answers1

2

Call pandoc with -f markdown-raw_html, i.e., disable the raw_html extension.

tarleb
  • 19,863
  • 4
  • 51
  • 80