Enumerates your markdown headers, inside the md file
Project description
1. Enumerates the headers in a markdown file
Enumerate headers in markdown file.
1.1 Usage:
Run from the command line
markdown-enum inputFile.md outputFile.md
The script will parse someFile.md
, add an enumeration to each header and output
the result to the file named outputFile.md
.
All previously existing headers will be overriden. So a useful scenario is
markdown-enum inputFile.md inputFile.md
1.2 Install:
Requires python 3.
pip install enumerate-markdown
1.3 Assumed markdown syntax:
The markdown syntax assumed is the one used by mistune, called "Sane CommonMark"
https://mistune.readthedocs.io/en/latest/intro.html#sane-commonmark
But, with a fine twist: headings defined by a single -
or single =
are considered too. For example:
This is a heading
-
This is also a heading
=
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for enumerate_markdown-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3d287ef0ca54220f05550dac914aaa5b82ca14c6f477a2e491201bb16e8a6ee |
|
MD5 | 0ed902a98a74d949222c561c93a02233 |
|
BLAKE2b-256 | 21ebbefe7a9002fcef4edcbf8772c24f654c0c8ed3801b7479775af83a8b16de |