我尝试使用Jekyll使用脚注注释文件。我的_config.yml文件是这样设置的:
降价:kramdown
这就是我尝试使用脚注的方式:
<p>As trade-off talking rational economic people [^1], we are constantly making choices that have different costs associated with them.</p>
[^1]: http://en.wikipedia.org/wiki/Trade-off_talking_rational_economic_person`
但是在我的本地机器中查看它似乎并没有解析第一个脚注。这是它出现的方式:
&#34;作为权衡理性经济人[^ 1]的权衡,我们不断做出与他们相关的不同成本的选择。&#34;
脚注定义不会出现。
非常感谢任何见解!
答案 0 :(得分:2)
你必须告诉kramdown在html中解析,这可以在你的代码中完成,如下所示:
<p markdown="1">As trade-off talking rational economic people [^1], we are constantly making choices that have different costs associated with them.</p>
或者,您可以在_config.yml
# be sure that you use kramdown as markdown processor
markdown: kramdown
# configure kramdown
kramdown:
parse_block_html: true