Skip to content
Discussion options

You must be logged in to vote

Thanks for reporting. The hack was necessary when I started with Material for MkDocs, because MkDocs provided no way of knowing whether an h1 headline was set or not. However, the use case you describe definitely makes sense: as long as the author provides an h1 tag (in Markdown or HTML), the headline should not be added to the page's content.

We can revert the relevant section in b95dffa and keep the hack, as it offers more flexibility. However, we can keep the logic in partials/toc.html, as the table of contents only includes Markdown headlines anyway. Would you like to craft a PR?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@SupImDos
Comment options

@SupImDos
Comment options

Answer selected by SupImDos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants