From c9d512cb08bb550d4fe2a4e0a10fb0c4c643653d Mon Sep 17 00:00:00 2001 From: Avele Date: Mon, 2 Sep 2019 21:53:26 +0400 Subject: [PATCH] Markdown editor code highlightning restored to defaults; fixes #352 #359 --- front/client/components/MarkdownEditor.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/front/client/components/MarkdownEditor.vue b/front/client/components/MarkdownEditor.vue index 80ce185..5e09a66 100644 --- a/front/client/components/MarkdownEditor.vue +++ b/front/client/components/MarkdownEditor.vue @@ -174,10 +174,10 @@ export default class MarkdownEditor extends Vue { if (!line.styles) { return } - const isLineInCodeblock = line.styles.some(x => typeof x === 'string' && x.includes('comment')) + const isLineInCodeblock = line.styles + .some(x => typeof x === 'string' && x.includes('comment')) // Highlightens full line inside code block, since codeMirror itself highlights only symbols if (isLineInCodeblock) { - element.style.background = 'rgba(0, 0, 0, 0.05)' element.style.fontFamily = 'monospace, monospace' element.style.fontSize = '85%' } @@ -265,10 +265,6 @@ export default class MarkdownEditor extends Vue { .cm-header-6 { font-size: 0.67rem; } - - .cm-comment { - background: unset; - } } .markdown-editor_has-top-toolbar >>> .CodeMirror { border-top: 1px solid #ddd;