我在用Pandoc对Markdown的扩展 http://pandoc.org/MANUAL.html#pandocs-markdown来生成 HTML。
以下降价:
#test{#specificId}
##test2
###test3
生成以下 html
<h1 id="specificId">test</h1>
<h2 id="test2">test2</h2>
<h3 id="test3">test3</h3>
理想情况下,它会产生这样的结果:
<h1 id="specificId">test</h1>
<h2>test2</h2>
<h3>test3</h3>
尽管我真的不知道要搜索什么,但我在文档中找不到一个选项,该选项可以使输出仅在显式添加到降价中的情况下添加 ID。
预先感谢您的任何帮助。
我找到了答案。
这个“特征”被称为auto_identifiers
。可以通过更改命令来禁用它-f markdown
to -f markdown-auto_identifiers
希望这对其他人有帮助。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)