我有如下所示的 Markdown 文件:
1. First
Some text and other stuff
2. Second
Othe stuff
但是渲染后它生成为:
1. First
Some text and other stuff
1. Second
Othe stuff
有没有办法让第二个有序列表从2开始?
最佳答案
jekyll 使用 Kramdown 作为支持设置自定义属性的 Markdown 解析器(请参阅 docs )。 html5支持改变有序列表开始编号的start属性,参见MDN .
Markdown 文件需要如下所示:
1. First
Some text and other stuff
{:start="2"}
2. Second
Othe stuff
关于markdown - 如何在 Jekyll 中从 1 以外的数字开始有序列表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48612358/