Discussed in #10909
Originally posted by jtwspoon1 June 14, 2025
I am trying to use pandoc on a LaTeX document that uses ifmmode, but the resulting html file shows that pandoc did not process ifmmode properly.
In LaTeX source: \newcommand{\sig} {\ifmmode\sigma\else\mbox{$\sigma$}\fi}
in html output: wherever \sig is referenced, pandoc simply displays the source command in red rather than interpreting it properly .
Any idea why and/or how to fix?
Discussed in #10909
Originally posted by jtwspoon1 June 14, 2025
I am trying to use pandoc on a LaTeX document that uses ifmmode, but the resulting html file shows that pandoc did not process ifmmode properly.
In LaTeX source: \newcommand{\sig} {\ifmmode\sigma\else\mbox{$\sigma$}\fi}
in html output: wherever \sig is referenced, pandoc simply displays the source command in red rather than interpreting it properly .
Any idea why and/or how to fix?