#markdown #mdbook #mdbook-plugins #chapter #listing #plugin #md #cats #subchapters

app mdbook-chapter-list

mdbook preprocessor for listing subchapters

1 unstable release

0.1.0 Jan 9, 2024

#1972 in Text processing

Download history 1/week @ 2025-04-25 1/week @ 2025-05-02 4/week @ 2025-05-09 3/week @ 2025-05-16 47/week @ 2025-05-23 20/week @ 2025-05-30 7/week @ 2025-06-06 33/week @ 2025-06-13 136/week @ 2025-06-20 41/week @ 2025-06-27 36/week @ 2025-07-04

252 downloads per month

MIT license

11KB
76 lines

Chapter Listing plugin for mdbook

The chapter-list preprocessor supports adding sub-chapter lists to documents.

Example

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)

Installation

Firstly add the following to your book's manifest file (usually book.toml)

[preprocessor.chapter-list]

Dependencies

~13–24MB
~376K SLoC