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
In GitHub - SamSaffron/discourse-svgbob: svgbob component for Discourse · GitHub , recommend porting both over.
pr-welcome for that.
FYI I have a PR that updates mermaid, uses local assets and does auto sizing.
https://github.com/discourse/discourse-mermaid-theme-component/pull/12
Should be merged soon.