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

@@ -55,7 +55,7 @@ export default class BasicPropertiesWidget extends NoteContextAwareWidget {
}
isEnabled() {
return this.note && (this.note.type === 'text' || this.note.type === 'code');
return this.note && (this.note.type === 'text' || this.note.type === 'code' || this.note.type == 'mermaid');
}
getTitle() {