-
IntroductionHi everyone. I recently version bumped one of my company's documentation websites from mkdocs-material 4.0.1 to 9.1.1 (yeah, it's a big bump...). We used to be able to render material icons in markdown pages (with some extra CSS sugar on top) with no issues. Since the bump, some pages are not rendering the icons correctly. I have a small theory of why that is the case found at the end of my question, but I'm not sure if it is correct. Thanks in advance for your help! 😄 Before the version bump
After the version bump
(replaced "notifications" by ":material-bell", everything is working fine)
(replaced "nfc" by ":material-nfc-variant:", the rendering is broken) TheoryMy leading theory is that the parser might be struggling to render icons nested in one or several Rendering the same
However inside of a singular
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
You probably need to set the <div markdown>
<div markdown>
:material-nfc-variant:
</div>
</div> And I'd be very interested to hear what you think of Material for MkDocs 9 when coming from version 4 😊 Almost 4 years of development happened since then. |
Beta Was this translation helpful? Give feedback.
Ah yeah, my bad. You must not indent the Markdown, and sometimes whitespace seems even necessary:
I'm not entirely sure about the mechanics of the extension, maybe take this upstream to Python Markdown and consult their documentation or ask the maintainers what exactly needs to be done for Markdown to be parsed out correctly.