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

markdown strike bug fixed, no emoji shortcut, checkbox syntax added

This commit is contained in:
Rokt33r
2016-01-13 13:10:46 +09:00
parent adb35b5bef
commit 9d0d851c2e
5 changed files with 15 additions and 4 deletions

View File

@@ -17,7 +17,9 @@ var md = markdownit({
return str
}
})
md.use(emoji)
md.use(emoji, {
shortcuts: {}
})
md.use(math, {
inlineRenderer: function (str) {
return `<span class='math'>${str}</span>`
@@ -26,6 +28,7 @@ md.use(math, {
return `<div class='math'>${str}</div>`
}
})
md.use(require('markdown-it-checkbox'))
let originalRenderToken = md.renderer.renderToken
md.renderer.renderToken = function renderToken (tokens, idx, options) {