goldmark-obsidian-callout
Extension for the goldmark markdown parser. Parses obsidian-flavored callouts.
Examples
> [!note]+ Sidenote
> This is something really interesting
Gets transformed into:
Sidenote
This is something really interesting
<details class="callout" data-callout="note" open>
<summary>Sidenote</summary>
<p>This is something <strong>really</strong> interesting</p>
</details>
The CSS class and data-callout
are there to make the callouts compatible with Obsidian stylesheets and themes.
Features
- Recognizes all Obsidian callout types
- Custom titles
- Multiple paragraphs inside the callout
- Non-collapsible callouts by default (requires Javascript - preview in browser)
- Nested callouts
- Default callout title accoring to the callout type
Contributions are very much welcome!
Credit
Project bootstrapped by the mangoubrella/goldmark-figure project. Thanks!
License
MIT