mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user