UPDATE 2019/2/1:
- Fix Potential security vulnerability
UPDATE 2018/4/20:
- Fix issue #5.
UPDATE 2018/2/4:
- Fix issue #2.
- Add configuration for index indocator.
thanks to firejq
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
foolbar
### a-c-d
foolbar
```
This is code block
```
## a-e
foolbar
This is code block too
# f
foolbar
Install markdown_index, run > markdown add index
, you can automatically add the serial number, as follows:
# 1. a
foolbar
## 1.1. a-b
foolbar
## 1.2. a-c
foolbar
foolbar
### 1.2.1. a-c-d
foolbar
```
This is code block
```
## 1.3. a-e
foolbar
This is code block too
# 2. f
foolbar
Note: Run command again can automatically update the serial number.
Note: You can configure index indicator in settings.json.
github: https://github.com/legendmohe/markdown_index
email: [email protected]
markdown_index是一个可以为你的markdown标题添加序号的插件。
假设原文如下所示:
# a
foolbar
## a-b
foolbar
## a-c
foolbar
foolbar
### a-c-d
foolbar
```
This is code block
```
## a-e
foolbar
This is code block too
# f
foolbar
安装markdown_index,运行 > markdown add index
,即可自动添加序号,如下所示:
# 1. a
foolbar
## 1.1. a-b
foolbar
## 1.2. a-c
foolbar
foolbar
### 1.2.1. a-c-d
foolbar
```
This is code block
```
## 1.3. a-e
foolbar
This is code block too
# 2. f
foolbar
注:重复运行命令可以自动更新序号。
注:可以在settings.json中设置标题的记号,默认为‘#’。
github: https://github.com/legendmohe/markdown_index
email: [email protected]