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

flowchart

This commit is contained in:
Dick Choi
2016-10-26 10:03:20 +09:00
parent c2234747e8
commit b18a5be940
7 changed files with 70 additions and 15 deletions

View File

@@ -20,6 +20,9 @@ var md = markdownit({
html: true,
xhtmlOut: true,
highlight: function (str, lang) {
if (lang === 'flowchart') {
return `<pre class="flowchart">${str}</pre>`
}
return '<pre class="code">' +
createGutter(str) +
'<code class="' + lang + '">' +