Is the SUMMARY.md parser too flexible? #2588
Labels
A-Summary
Area: The summary page, organization of pages.
C-question
Category: A question on how to do something
Question
I was trying to create a test for the
Summary parsing failed
error inbook.rs
, but so far it parsed everything.Sometimes not as I expected, but I could not create a SUMMARY.md file that would fail to parse.
Here is one thing that seems to be odd. These example all generate the same thing (two prefix chapters)
Both starting on the 1st column
B Starting indented (the
Even when there are 1-3 leading spaces
However, when there are 4 leading spaces, then these entries are disregarded
This is also accepted:
My understanding of the docs is that you cannot have a prefix (like) chapter after the first numbered chapter.
The result is
without error.
IMHO mdbook should have stricter rules and it should report errors instead of just disregarding things.
Version
The text was updated successfully, but these errors were encountered: