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.
@pi88 From my side unfortunately it doesnât look like it. LaTex/graphviz, Table of Contents, and a number of other theme components donât appear to be active in my published pages. I suspect most theme components are not active in published pages.
@joffreyjaffeux The functionality of this theme component has been great for me since it was released in February. Does it make sense for there to also be a plugin?
My mistake, perhaps I was looking at a different theme component, I see it works perfectly, great job all Regarding the comment above about GDPR, are there any other official theme components that are cause for concern regarding GDRP compliance?
This is great. It doesnât seem to work with mindmaps and timelines though. I tried forking it and updating to Mermaid v9.4.0, but Iâm still getting an error. This code works in their live editor, but not in Discourse, even with Mermaid v9.4.0:
mindmap
Root
A
B
C
also this one, but it doesnât work in their live editor either, which appears to be running v9.3.0. It does run in a plain HTML page using v9.4.0.
timeline
title History of Social Media Platform
2002 : LinkedIn
2004 : Facebook : Google
2005 : Youtube
2006 : Twitter