diff --git a/client/components/editor/editor-markdown.vue b/client/components/editor/editor-markdown.vue index 226c9cc6..822f0d2c 100644 --- a/client/components/editor/editor-markdown.vue +++ b/client/components/editor/editor-markdown.vue @@ -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),