mermaid layout improvements

This commit is contained in:
zadam
2021-09-30 10:18:03 +02:00
parent f4dde84f06
commit af3fd61974
7 changed files with 23 additions and 10 deletions

View File

@@ -63,7 +63,7 @@ export default class MermaidWidget extends NoteContextAwareWidget {
this.$errorContainer.hide();
} catch (e) {
this.$errorMessage.text(e.message);
this.$errorMessage.text(e.message).append(`<br/><br/><p>See <a href="https://mermaid-js.github.io/mermaid/#/flowchart?id=graph">help and examples</a>.</p>`);
this.$errorContainer.show();
}
}