Closed
Description
In the markdown files, a number sub-chapter headlines seem to be first level ones (single #
), resulting in h1
s in the output. The chapter title is rendered as a h1
as well. This is semantically wrong—the content contains subheadings to the chapter.
An example is the chapter The Rust Testing Guide. It should be noted that some chapters do use second level headlines, e.g. Compound Data Types.
Since the chapter heading is not inserted as a regular headline but as special title attribute (%
), it is debatable what is the correct content headline level is.
Two possible ways to fix this:
- Change all files to contain at most second level headlines
- Change rustbook to increment headline levels by one