UPDATE 2018/2/4:
- Fix the issue #2.
- Add the configuration for index base.
markdown_index is an extension that can add serial numbers to your markdown title.
Suppose the original text is as follows:
# a
foolbar
## a-b
foolbar
## a-c
foolbar
### a-c-d
foolbar
## a-e
foolbar
# f
foolbar
Install markdown_index, run > markdown add index
, you can automatically add the serial number, as follows:
# a
foolbar
## a-b
foolbar
## a-c
foolbar
### a-c-d
foolbar
## a-e
foolbar
# f
foolbar
If you want the serial number to start at ##
instead of #
, edit the configuration as follows:
markdownIndex.indexBase = '##'
Note: Run command again can automatically update the serial number.
Note: Only the title level of the "#" tag is valid.
github: https://github.com/legendmohe/markdown_index
email: legendmohe@foxmail.com
markdown_index 是一个可以为你的 markdown 标题添加序号的插件。
假设原文如下所示:
# a
foolbar
## a-b
foolbar
## a-c
foolbar
### a-c-d
foolbar
## a-e
foolbar
# f
foolbar
安装 markdown_index,运行 > markdown add index
,即可自动添加序号,如下所示:
# a
foolbar
## a-b
foolbar
## a-c
foolbar
### a-c-d
foolbar
## a-e
foolbar
# f
foolbar
如果你希望添加序号时从 ##
而不是 #
开始,只需要修改用户设置:
markdownIndex.indexBase = '##'
注:重复运行命令可以自动更新序号。
注:仅对“#”标记的标题等级有效。
github: https://github.com/legendmohe/markdown_index
email: legendmohe@foxmail.com