mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 09:15:50 +01:00
grammar
This commit is contained in:
@@ -101,7 +101,7 @@ export default class MermaidWidget extends NoteContextAwareWidget {
|
||||
const blob = await this.note.getBlob();
|
||||
const content = blob.content || "";
|
||||
|
||||
// this can't be promisified since in case of error this both calls callback with error SVG and throws exception
|
||||
// this can't be promisified since in case of error, this both calls callback with error SVG and throws exception
|
||||
// with error details
|
||||
mermaid.mermaidAPI.render(`mermaid-graph-${idCounter}`, content, cb);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user