Jekyll Kramdown 脚注未解析

Jekyll Kramdown Footnotes Not Parsing

我正在尝试使用 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`

但是在我的本地机器上查看它似乎没有解析第一个脚注。它是这样显示的:

"As trade-off talking rational economic people [^1], we are constantly making choices that have different costs associated with them."

没有出现脚注定义。

任何见解将不胜感激!

您必须告诉 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

中配置 kramdown
# be sure that you use kramdown as markdown processor
markdown: kramdown

# configure kramdown
kramdown:
  parse_block_html: true

See kramdown documentation