Crates.io | mdbook-chapter-list |
lib.rs | mdbook-chapter-list |
version | 0.1.0 |
source | src |
created_at | 2024-01-09 23:22:43.665922 |
updated_at | 2024-01-09 23:22:43.665922 |
description | mdbook preprocessor for listing subchapters. |
homepage | |
repository | https://github.com/bradjc/mdbook-chapter-list.git |
max_upload_size | |
id | 1094730 |
size | 32,698 |
The chapter-list
preprocessor supports adding sub-chapter lists to documents.
With a SUMMARY.md
file like:
- [Zoo Animals](./zoo.md)
- [Large Cats](./cats.md)
- [Lion](./lion.md)
- [Tiger](./tiger.md)
- [Zebra](./zebra.md)
- [Turtle](./turtle.md)
Then include <!-- chapter-list -->
in the zoo.md markdown file:
## Animals in the Zoo:
<!-- chapter-list -->
The zoo.md file would be updated to:
## Animals in the Zoo:
1. [Large Cats](./cats.md)
1. [Lion](./lion.md)
2. [Tiger](./tiger.md)
2. [Zebra](./zebra.md)
3. [Turtle](./turtle.md)
Firstly add the following to your book's manifest file (usually book.toml
)
[preprocessor.chapter-list]