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

refactor: fix to use cut off file

This commit is contained in:
asmsuechan
2017-11-07 14:44:15 +09:00
parent 2ce96186f2
commit 6047987c25
2 changed files with 7 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ import emoji from 'markdown-it-emoji'
import math from '@rokt33r/markdown-it-math'
import _ from 'lodash'
// FIXME We should not depend on global variable.
const katex = window.katex
function createGutter (str) {
@@ -137,6 +138,7 @@ md.renderer.render = function render (tokens, options, env) {
let result = originalRender.call(md.renderer, tokens, options, env)
return result
}
// FIXME We should not depend on global variable.
window.md = md
function strip (input) {
@@ -177,7 +179,11 @@ const markdown = {
const renderedContent = md.render(content)
return renderedContent
},
<<<<<<< HEAD
strip,
normalizeLinkText
=======
>>>>>>> refactor: fix to use cut off file
}
export default markdown