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

Non-HTML TOC markers break chapters without TOC #13

Closed mlange-42 closed 3 years ago

mlange-42 commented 3 years ago

When using a TOC marker that is not HTML (as the default marker), chapters without the marker are broken.

Example: Use [[_TOC_]] as marker. It may be desired to have chapters without TOC, like an introduction or an appendix. These chapters will have several problems. What I observed so far:

This is what is expected:

grafik

But the result is this:

grafik

Chapters containing the marker render as expected.

badboy commented 3 years ago

Hey, sorry this issue got lost in my inbox. I'm looking into it.