badboy / mdbook-toc

A preprocessor for mdbook to add inline Table of Contents support.
Mozilla Public License 2.0
163 stars 20 forks source link

Nested TOC broken (flattened) in 0.4.2 #3

Closed flodolo closed 4 years ago

flodolo commented 4 years ago

Locally I had 0.3.0 installed, and the TOC for this page was generated correctly

As you can see, the TOC is completely flat.

flodolo commented 4 years ago

Note: I assume it broke with 0.4.2, otherwise I think I would have noticed the issue before.

I see this commit, but the structure seems correct to me (no holes)

# Firefox L10N FAQs
## General
### Who can I contact if I have more questions?
### Should I enable my feature only for English, or ship it in English for everyone?
## Schedule and release cycle
### I landed strings in mozilla-central, when are they going to be localized?
### Can I uplift a patch to Beta or Release?
### I need to add new strings for version X, do I still have time?
## Development
### Where can I find guidelines for developers?
### How can I get my strings localized?
### Where can I find the localized strings?
### Can I land content without exposing it for localization?
### How can I test a different locale?
## Translation completion and community
### Is my feature going to be localized in language X before launch?
### How do I communicate with localizers about my feature or patch?
### I see pending suggestions in Pontoon, how can I get them approved?
### How can I check if my feature is localized?
### How can I see all translations available for a specific string?
flodolo commented 4 years ago

To close the gap, 0.4.1 works as expected locally.

Schermata 2020-06-09 alle 14 53 57
badboy commented 4 years ago

Fixed in commit 2d5b4021 and released in v0.4.3