ITADN

Tooltip with formatting is not working in the pages TOC

#8568OpenWolf2323 创建于 2026-02-19
documentation
W
Wolf2323commented
### Description If a Tooltip with HTML formatting is used in a Heading, it is shown correctly, but it is also shown in the TOC, where the HTML formatting is ignored and and shown plan. Heading: <img width="1261" height="278" alt="Image" src="https://github.com/user-attachments/assets/45c02f7d-9c90-4301-bc83-b9af77b798ab" /> TOC: <img width="1328" height="334" alt="Image" src="https://github.com/user-attachments/assets/ebdb783e-9930-426d-9f8b-96ed79433d36" /> I would say It should render correctly, if that is not possible, It should not render at all. My tooltip looks like this: ```md ## `Burn` :material-account-check:{ .account .account-online title="<b>Online</b><br>This event can only be executed on a player that is online." } ``` ### Related links - [[Reporting a docs issue](https://squidfunk.github.io/mkdocs-material/contributing/reporting-a-docs-issue/) -](https://squidfunk.github.io/mkdocs-material/reference/tooltips/?h=tool#usage) ### Proposed change First I tried Mark Down formatting, that does not work at all. Maybe there should be support for md formatting. Then I used HTML, I am also fine with that. But I think it should also work/render correctly in the toc, or it should be possible, to disable this in the toc. ### Before submitting - [x] I have read and followed the [documentation issue guidelines](https://squidfunk.github.io/mkdocs-material/contributing/reporting-a-docs-issue/). - [x] I have attached the links to the affected sections of [the documentation](https://squidfunk.github.io/mkdocs-material/contributing/reporting-a-docs-issue/#related-links)
0 条评论