Implement mermaid diagrams (#2187)

* Start implementing mermaid diagrams

* Implement theming for mermaid diagrams

* Add edit tab to mermaid diagrams

* Remove comment

* Render mermaid diagrams in included notes

* Prevent mermaid notes from being removed to consistency checks
This commit is contained in:
Abitofevrything
2021-09-29 21:54:56 +02:00
committed by GitHub
parent 14f24c646a
commit b37bcd294c
11 changed files with 229 additions and 5 deletions

View File

@@ -50,6 +50,10 @@ const FORCE_GRAPH = {
js: [ "libraries/force-graph.min.js"]
};
const MERMAID = {
js: [ "libraries/mermaid.min.js" ]
}
async function requireLibrary(library) {
if (library.css) {
library.css.map(cssUrl => requireCss(cssUrl));
@@ -99,5 +103,6 @@ export default {
CALENDAR_WIDGET,
KATEX,
WHEEL_ZOOM,
FORCE_GRAPH
FORCE_GRAPH,
MERMAID
}