mdBook icon indicating copy to clipboard operation
mdBook copied to clipboard

Adding section titles to ToC / sidebar

Open rimutaka opened this issue 2 years ago • 3 comments

@ehuss , Eric, would you consider a PR for the following feature ...

At the moment the sidebar is constructed out of the items listed in SUMMARY.md. It would be helpful to include an additional level out of Hx titles found in the markdown content in the ToC as an optional feature.

At the moment Hx tags are wrapped into with #-anchors, so we just need to add them to the ToC in the right place.
The list of H-levels can be included in book.toml as a setting.

rimutaka avatar May 22 '22 11:05 rimutaka