Commit 9f92aa40 authored by Nick's avatar Nick

fix: linting + mk help visibility

parent de1dddbc
......@@ -265,7 +265,7 @@ export default {
cursorPos: { ch: 0, line: 1 },
previewShown: true,
previewHTML: '',
helpShown: true
helpShown: false
}
},
computed: {
......@@ -332,7 +332,7 @@ export default {
this.previewHTML = md.render(newContent)
this.$nextTick(() => {
Prism.highlightAllUnder(this.$refs.editorPreview)
Array.from(this.$refs.editorPreview.querySelectorAll('pre.line-numbers')).map(pre => pre.classList.add('prismjs'))
Array.from(this.$refs.editorPreview.querySelectorAll('pre.line-numbers')).forEach(pre => pre.classList.add('prismjs'))
this.scrollSync(this.cm)
})
}, 500),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment