catalog-of-markdown

Crates.iocatalog-of-markdown
lib.rscatalog-of-markdown
version0.1.6
created_at2022-01-01 02:40:33.036972+00
updated_at2024-11-15 16:50:33.893737+00
descriptionGenerate the catalog of markdown file.
homepage
repositoryhttps://github.com/ccqpein/catalog-of-markdown
max_upload_size
id506016
size19,736
ccQpein (ccqpein)

documentation

README

README

Generate catalog of README.md on Github Repo.

Install

cargo install catalog-of-markdown

Usage

Example

cargo run -- Example.md

will generate content below in stdout:

- [Example](#example)
  - [Subtitle0](#subtitle0)
    - [sub sub title](#sub-sub-title)
  - [Subtitle 1](#subtitle-1)
  - [Subtitle 2](#subtitle-2)

cargo run -- -d 1 ./Example.md

- [Subtitle0](#subtitle0)
  - [sub sub title](#sub-sub-title)
- [Subtitle 1](#subtitle-1)
- [Subtitle 2](#subtitle-2)

cargo run -- -d 2 ./Example.md

- [sub sub title](#sub-sub-title)

cargo run -- -s "*" ./Example.md

* [Example](#example)
  * [Subtitle0](#subtitle0)
    * [sub sub title](#sub-sub-title)
  * [Subtitle 1](#subtitle-1)
  * [Subtitle 2](#subtitle-2)
Commit count: 11

cargo fmt