@arg
I’d like to use admonitions as well, but I guess it’s difficult, because the format of the Admonition Plugin is quite different that the admonition format of the Mkdocs Material Admonition Plugin
This is because of the way Obsidian’s API is set up. These admonitions are created as “markdown code block processors”, so when Obsidian sees the “language” of each admonition (ad-note
, for example), it just runs the processor I setup for that admonition type.
The MkDocs !!!
syntax would require adding a whole new Markdown syntax to Obsidian, which I’m not willing to do. If the Obsidian devs add the ability to do this properly (or add the !!!
syntax), I’ll add this. If I get some free time, I’ll take a look and see if I can hook into Obsidian export if its installed and setup a parser for these blocks.
For now you could run the output through a RegEx replace and change them, though.
Edit: also, if other markdown code block processors (such as mermaid) work with the export plugin, they’re probably hardcoded in.
@amarionette
What do you think of having alternate stylings in the form of Cards?
This would be pretty easy, but it would require an additional parameter field in the admonition.
An alternative, in 3.0.0, would be to create a custom admonition (like ad-card) and then override the CSS for that admonition type:
.admonition-card {
/* ... */
}
.admonition-card > .admonition-title {
/* ... */
}
/* etc */
This would let you completely customize the look.
Let me know which option you’d prefer. If you need, I can help you with the CSS.