So you finished writing a long article with Markdown and want a table of contents? Use Python-Markdown!
Just install it by:
And add
Now run the following command:
You can see for yourself the result in output.html
Just install it by:
pip install markdown
[TOC]
to your markdown file, like this:# I like Python-Markdown
[TOC]
## What is Python-Markdown?
## Why do I like it?
### I just like it.
### Try it and you'll like it too.
python -m markdown -x toc input.md > output.html