RealAtix / mdbook-private

A preprocessor that supports private sections
Mozilla Public License 2.0
9 stars 1 forks source link

Nonumbered Chapters are Numbered if remove=true #12

Closed sepbijani closed 3 months ago

sepbijani commented 3 months ago

Hi, the behavior is not consistent. When "remove=false" in book.toml, the output will be: image however for remove=true, the non_numbered chapter (prefix chapter) will be numbered: image The SUMMARY.md file is as:

# Summary
[Nonumber Chapter](./no_number.md)
# Content
- [Chapter 1](./chapter_1.md)
  - [Sub chapter](./_chapter_1_sub.md)
- [Chapter 2](./_chapter_2.md)
  - [Sub chapter](./chapter_2_sub.md)
RealAtix commented 3 months ago

Hi, it seems I did not take into account prefix chapters, I'll look into it.

RealAtix commented 3 months ago

I'll include this in the next release, until then you can run it by cloning the repo's master branch and running cargo build --release && cargo install --path . to install the latest locally.

sepbijani commented 3 months ago

Thanks for the bug fix!