-
Hi, I'm going through the process of updating my documentation from One of the changes I've found is that the header on my index page is no longer detected (as it is below my project logo), and as such the This can be traced back to commit b95dffa, where the functionality for checking the content for an existing I completely understand the change, and I don't expect this will be reverted. I just wanted to ask if there's a simple way (without overriding For reference, some screenshots below show before and after this change. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thanks for reporting. The hack was necessary when I started with Material for MkDocs, because MkDocs provided no way of knowing whether an We can revert the relevant section in b95dffa and keep the hack, as it offers more flexibility. However, we can keep the logic in |
Beta Was this translation helpful? Give feedback.
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 anh1
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?