Jekyll Kramdown脚注未解析 [英] Jekyll Kramdown Footnotes Not Parsing

查看:66
本文介绍了Jekyll Kramdown脚注未解析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Jekyll用脚注对文件进行注释.这样就设置了_config.yml文件:

I'm attempting to annotate a file with footnotes using Jekyll. My _config.yml file is set thusly:

markdown:kramdown

markdown: kramdown

这是我尝试使用脚注的方式:

This is how I'm attempting to use the footnotes:

<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`

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

But viewing it in my local machine it doesn't seem to parse the first footnote. This is how it shows up:

作为会说话的理性经济人士[^ 1],我们一直在做出与他们有不同成本相关联的选择."

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

脚注定义不出现.

任何见识将不胜感激!

推荐答案

您必须告诉kramdown在html内部进行解析,这可以在您的代码中完成,如下所示:

You have to tell kramdown to parse inside html, This can be done in your code, like this :

<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

请参阅kramdown文档

这篇关于Jekyll Kramdown脚注未解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆