ndy2 / mkdocs-obsidian-support-plugin

A MkDocs plugin that supports obsidian to mkdocs convert
https://ndy2.github.io/mkdocs-obsidian-support-plugin/
MIT License
14 stars 4 forks source link

Feature request: collapsible admonitions from Obsidian syntax #4

Closed SebastianErfort closed 8 months ago

SebastianErfort commented 8 months ago

Hi,

It would be great to translate the Obsidian syntax for collapsible call-outs to MkDocs admonitions

> [!note]- <title>
> <lines>

to

??? note "<title>"

    <lines>

and

> [!note]+ <title>
> <lines>

to

???+ note "<title>"

    <lines>

I saw something similar was recently added in #2 for a syntax for admonitions I haven't come across yet. (By the way, where is this backtick syntax being used?)

I will try to implement this myself, but I first need to figure out how to have MkDocs use my fork of your plugin and should be working on other things. 😅

Thanks a lot for the plugin, it has been very helpful in integrating my Obsidian notes in a MkDocs documentation system.

Cheers

ndy2 commented 8 months ago

Thank you for your suggestion!

I implemented it on 0.7.2 and deployed it to pypi. and here is sample usage of it!

There are some miss matching in raw text, converted text in the documentation. But i will fix it soon or later

SebastianErfort commented 8 months ago

Nice, thank you for the quick implementation!