如何在 Jekyll 中从 1 以外的数字开始有序列表?
How to start ordered list from number other then 1 in Jekyll?
我有这样的 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). And html5 support start attribute that change start number of ordered list see MDN。
markdown 文件需要如下所示:
1. First
Some text and other stuff
{:start="2"}
2. Second
Othe stuff
在这种情况下,另一种方法是简单地将 Some text and other stuff
段落缩进 4 个空格。那么2. Second
就知道继续编号了
我有这样的 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). And html5 support start attribute that change start number of ordered list see MDN。
markdown 文件需要如下所示:
1. First
Some text and other stuff
{:start="2"}
2. Second
Othe stuff
在这种情况下,另一种方法是简单地将 Some text and other stuff
段落缩进 4 个空格。那么2. Second
就知道继续编号了