enumerate-markdown-1.0.0
توضیحات
Enumerates your markdown headers, inside the md file
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | enumerate-markdown-1.0.0 |
| نام | enumerate-markdown |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Assaf Yifrach |
| ایمیل نویسنده | asafyi@gmail.com |
| آدرس صفحه اصلی | https://github.com/a4vision/enumerate-markdown |
| آدرس اینترنتی | https://pypi.org/project/enumerate-markdown/ |
| مجوز | - |
# 1. Enumerates the headers in a markdown file
Enumerate headers in markdown file.
## 1.1 Usage:
Run from the command line
```bash
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
```bash
markdown-enum inputFile.md inputFile.md
```
## 1.2 Install:
Requires python 3.
```bash
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:
```markdown
This is a heading
-
This is also a heading
=
```
نیازمندی
| مقدار | نام |
|---|---|
| >=2.0 | mistune |
نحوه نصب
نصب پکیج whl enumerate-markdown-1.0.0:
pip install enumerate-markdown-1.0.0.whl
نصب پکیج tar.gz enumerate-markdown-1.0.0:
pip install enumerate-markdown-1.0.0.tar.gz