lambdalisue / rs-mdbook-alerts

mdBook preprocessor to add GitHub Flavored Markdown's Alerts to your book
https://crates.io/crates/mdbook-alerts
MIT License
23 stars 5 forks source link

Does not render properly with foldable callouts #71

Closed CryptoMonkey closed 2 weeks ago

CryptoMonkey commented 2 weeks ago

SImple issue, in Obsidian you can set a callout to be default open or close like this --

Basic calloout with no defaule render state

[!faq] Are callouts foldable?

You can set that is it be open by default by adding a '+'

[!faq]+ Are callouts foldable?

And default closed by adding a '-'

[!faq]- Are callouts foldable?

Adding either of these will cause the site to build via 'mdbook build', but the callout will not render correctly. You get text blocked, but the icon is not rendered. You get

[!faq]-

as text instead. Even if the extra character is ignored and the callout is always rendered open no matter the state requested it would be cleaner

lambdalisue commented 2 weeks ago

This renderer provides GitHub Markdown Alerts rather than Obsidian Callout. If GitHub Markdown Alerts support that syntax, I'll implement.

CryptoMonkey commented 2 weeks ago

Yes, you are right I was in the wrong tab - this belongs in rs-mdbook-callouts