Custom admonition icons in mkdocs-material #1383
-
I've recently learned how to make custom admonitions in mkdocs-material, which uses pymdownx for parsing admonition syntax according to its maintainer . I am pretty satisfied with the results so far, but I was wondering if there is a way to specify a blank admonition title without defining whitespace. I've tried defining a blank I'm currently only able to create this effect by defining a title with whitespace in the markdown: !!! rs " "
<!-- snip -->
!!! cs " "
<!-- snip -->
!!! py " "
<!-- snip --> |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There may be a little confusion here. Pymdown Extensions offers a plugin called Details that works like Admonitions (except that Details are collapsible). The Details extension was inspired by Admonitions, but we do not distribute the Admonitions extension in our project. Also, styling is provided by themes like MkDocs Material or the user themselves. We do not offer any auto-styling. So, if we are talking about Details, you can define an empty title:
As far as Admonitions, you can ask this over on the Python Markdown repo. It seems that currently if you specify an empty title (no whitespace), the title element is not inserted in the final HTML. If this is considered a bug by the maintainer, I'd be happy to create a fix for it as I am a member of that organization, but if the maintainer has a reason for this behavior, using a |
Beta Was this translation helpful? Give feedback.
There may be a little confusion here. Pymdown Extensions offers a plugin called Details that works like Admonitions (except that Details are collapsible). The Details extension was inspired by Admonitions, but we do not distribute the Admonitions extension in our project. Also, styling is provided by themes like MkDocs Material or the user themselves. We do not offer any auto-styling.
So, if we are talking about Details, you can define an empty title:
As far as Admonitions, you can ask this over on the Python Markdown repo. It seems that currently if you specify an empty title (no whitespace), the title element is not inserted in the final HTML. If this is con…