Load Mermaid source locally instead of remotely

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.

4 Likes

We have patterns for both

  1. Dynamic height calculation
  2. Local assets

In GitHub - discourse/discourse-svgbob: svgbob component for Discourse , recommend porting both over.

pr-welcome for that.

1 Like

FYI I have a PR that updates mermaid, uses local assets and does auto sizing.

Should be merged soon.

4 Likes