New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the built-in typeset plugin compatible with data-toc-label #5790
Comments
Thanks for reporting. The problem with the info plugin is already tracked in #5773. In the meantime, please use the following configuration for the plugin for mitigation: plugins:
- info:
archive_stop_on_violation: false |
Thanks for the pointer regarding the
Please find the reproduction here: example.zip |
Thanks for noting, updated my comment 😊 |
Okay, so |
Released as part of insiders-4.38.1. |
Description
I am using the markdown extension
attr_list
and data attributedata-toc-label
to shorten long headings that make up a document's TOC (h2 - h6). Unfortunately, the data attribute doesn't seem to be compatible with the built-intypeset
plugin. As soon as the plugin is active, the data attribute is removed but the TOC representation does not change.Context
Sadly, I am unable to create a reproduction using insiders, as the current beta is recognized as newer. Unfortunately, as of now, the
typeset
plugin is only available using insiders > 4.27.0:However, using this minimal
mkdocs.yml
in combination with the following heading will produce my findings. Disabling thetypeset
plugin will produce a shortened TOC heading.Related links
attr_list
extensionUse Cases
I have long document headings (h2 - h6) that make up a document's TOC which, if left as is, extend over multiple lines. This makes them harder to grasp when skimming over the TOC. I used to shorten such headings for the TOC and would like to continue to do so when using the built-in
typeset
plugin.Visuals
No response
Before submitting
The text was updated successfully, but these errors were encountered: