-
For example, I have this in the markdown: Silicon dioxide, SiO2but in the table of contents (toc), it is displayed as I tried to add <!-- Table of contents item -->
<li class="md-nav__item">
<a href="{{ toc_item.url }}" class="md-nav__link">
<span class="md-ellipsis">
{{ toc_item.title}}
</span>
</a> <!-- Table of contents item -->
<li class="md-nav__item">
<a href="{{ toc_item.url }}" class="md-nav__link">
<span class="md-ellipsis">
{{ toc_item.title | safe}}
</span>
</a> but it doesn't work. Does anyone have any ideas on how to do this? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
MkDocs by default does not support it, but if you enable the built-in typeset plugin, the table of contents and navigation allow for HTML to be rendered. Note that you need to sponsor the project to get access to the plugin, as it is currently incubating in Insiders. If you have access to Insiders, add the following to plugins:
- typeset See it in action in our plugins documentation, where we use it for settings. |
Beta Was this translation helpful? Give feedback.
MkDocs by default does not support it, but if you enable the built-in typeset plugin, the table of contents and navigation allow for HTML to be rendered. Note that you need to sponsor the project to get access to the plugin, as it is currently incubating in Insiders.
If you have access to Insiders, add the following to
mkdocs.yml
to enable the plugin:See it in action in our plugins documentation, where we use it for settings.