Thanks for this component!
It seems the source of mermaid is hard-coded, so installing this plugin makes Discourse transmit user data to unpkg.com, voiding GDPR compliance and general sane best practices.
Please add an option to load mermaid from a custom source.
We have patterns for both
- Dynamic height calculation
- Local assets
In GitHub - discourse/discourse-svgbob: svgbob component for Discourse , recommend porting both over.
#pr-welcome for that.
FYI I have a PR that updates mermaid, uses local assets and does auto sizing.
Should be merged soon.