【发布时间】:2016-10-24 19:45:15
【问题描述】:
假设我有以下降价代码,test.md:
This is a footnote mark.^[Which I would like to show up having brackets]
然后我使用以下命令生成 HTML:
$ pandoc --ascii test.md -o test.html
这给了我以下 HTML:
<p>This is a footnote mark.<a href="#fn1" class="footnoteRef" id="fnref1"><sup>1</sup></a></p>
<div class="footnotes">
<hr />
<ol>
<li id="fn1"><p>Which I would like to show up having brackets<a href="#fnref1">↩</a></p></li>
</ol>
</div>
其中的突出部分显示为:
这是一个脚注标记。1
我想要的是某种方式来获得维基百科风格的上标链接,如下所示:
这是一个脚注标记。[1]
有没有办法做到这一点?我想不通,没有用 lua 写我自己的作家。
【问题讨论】: