如何在Jekyll的kramdown中更改脚注的格式?

2 html markdown jekyll

目前,在Jekyll中使用kramdown,脚注使用[^1]显示上标数字.1但是,我希望脚注看起来像维基百科的方式[1].

我在哪里可以找到操作这个小变化的代码?

Dav*_*uel 5

为了实现您的目标,您可以使用css.

如果你在mypost.md内容中有类似的内容:

I make a reference to a footnote [^1].
[^1]: This is the footnote
Run Code Online (Sandbox Code Playgroud)

添加两个css规则:

a.footnote:before {   
 content: "[";
}

a.footnote:after {
    content: "]";
}
Run Code Online (Sandbox Code Playgroud)

做完了!