Skip to content

luo-heng/markdown_index

 
 

Repository files navigation

MarkdownIndex

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

1. Introduction(English Version)

1.1. Feature

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

1.2. Note

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]

1.3. Contributor

2. 简介(简体中文版)

2.1. 功能

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]

2.2. 贡献者

About

add index to your markdown title

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%