RealAtix / mdbook-private

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

Numbering issue with private pages #6

Closed jmorel closed 1 year ago

jmorel commented 1 year ago

When remove=true, private pages are still taken into account when generating section numbers in the table of contents.

For example with this summary.md:

# Summary

- [Chapter 1](./chapter_1.md)
  - [Sub chapter](./_chapter_1_sub.md)
- [Chapter 2](./_chapter_2.md)
  - [Sub chapter](./chapter_2_sub.md)
- [If remove=false, should be numbered 3 else should be 2](./chapter_3.md)

If remove=true:

Capture d’écran 2023-10-06 à 09 32 40

if remove=false:

Capture d’écran 2023-10-06 à 09 33 25

I'm guessing the issue also occurs with sub sections.

RealAtix commented 1 year ago

Hi, thanks for reporting. I will look into it.

It will indeed also occur in subsections.

RealAtix commented 1 year ago

Please check #7