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;