rust-lang / mdBook

Create book from markdown files. Like Gitbook but implemented in Rust
https://rust-lang.github.io/mdBook/
Mozilla Public License 2.0
18.36k stars 1.65k forks source link

Allow unnumbered chapters use in part titles #2192

Open pozix604 opened 1 year ago

pozix604 commented 1 year ago

Problem

Both prefix and suffix chapters are allowed in a book, which are unnumbered, but they must precede and succeed the numbered chapters, respectively. They are treated as a special case. They are also not allowed below part titles.

I would like to use mdbook to write a document with unnumbered chapters but with part titles. Removing restrictions on unnumbered chapters would enable this.

Proposed Solution

Remove special case treatment of unnumbered sections, especially not displaying after part titles.

Notes

No response

LunarLambda commented 1 year ago

I would also like this.

fsm-xyz commented 2 months ago

this pr have done this! [https://github.com/rust-lang/mdBook/pull/533/files]