1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Add mermaid support

This commit is contained in:
JianXu
2018-07-03 15:10:08 +08:00
parent 9d9109e9e5
commit 866a0e7534
5 changed files with 324 additions and 6 deletions

View File

@@ -40,6 +40,9 @@ class Markdown {
if (langType === 'sequence') {
return `<pre class="sequence">${str}</pre>`
}
if (langType === 'mermaid') {
return `<pre class="mermaid">${str}</pre>`
}
return '<pre class="code CodeMirror">' +
'<span class="filename">' + fileName + '</span>' +
createGutter(str, firstLineNumber) +