【发布时间】:2017-04-29 16:23:18
【问题描述】:
我正在尝试使用 pandoc 将包含 Latex 方程式的 Markdown 文件转换为 Html 文件。
我在文件test.md 中尝试了以下合成器:
$$ \frac{1}{2} = 0.5 \neq \sqrt{2} $$
我调用 pandoc 使用
pandoc test.md -o test.html --mathjax
正如this answer 中所指出的那样。生成的test.html 文件包含一行
<p><span class="math">\[ \frac{1}{2} = 0.5 \neq \sqrt{2} \]</span></p>
当使用网络浏览器打开test.html 时,屏幕上的输出是乱七八糟的
\[ \frac{1}{2} = 0.5 \neq \sqrt{2} \]
而不是一个很好的“乳胶编译”方程。
我错过了什么?
附:我正在使用 pandoc 1.12.2.1
【问题讨论】:
标签: html latex markdown pandoc