Jump to content

Markdown TOC Generator


Recommended Posts

Download

 

https://dl.dropboxusercontent.com/u/4345768/markdown-toc.alfredworkflow

 

Usage:

 

    Select markdown document, and select [Markdown TOC] then toc contents are copied to Clipboard. 

 

Markdown:

 

 

## A

### Aa
#### aa
#### ab
### Ab
## B
### Ba
#### ba
#### bb
### Bb
### Bc
## C
### Ca
#### ca

 

Output

 

   Default depth of section is 2. 

 

1 A

 1.1 Aa
  1.1.1 aa
  1.1.2 ab
 1.2 Ab
2 B
 2.1 Ba
  2.1.1 ba
  2.1.2 bb
 2.2 Bb
 2.3 Bc
3 C
 3.1 Ca
  3.1.1 ca

 

 
 

 

 

 

 

 

 

Link to post
  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...