diff --git a/browser/components/CodeEditor.js b/browser/components/CodeEditor.js index 759cd507..76b73941 100644 --- a/browser/components/CodeEditor.js +++ b/browser/components/CodeEditor.js @@ -93,7 +93,8 @@ export default class CodeEditor extends React.Component { setMode (mode) { let syntax = CodeMirror.findModeByName(pass(mode)) if (syntax == null) syntax = CodeMirror.findModeByName('Plain Text') - this.editor.setOption('mode', syntax.mode) + + this.editor.setOption('mode', syntax.mime) CodeMirror.autoLoadMode(this.editor, syntax.mode) } diff --git a/browser/components/markdown.styl b/browser/components/markdown.styl index 39992f4e..e6f33b2c 100644 --- a/browser/components/markdown.styl +++ b/browser/components/markdown.styl @@ -196,7 +196,7 @@ code margin-right 2px pre padding 0.5em !important - border solid 1px alpha(borderColor, 0.5) + border solid 1px #D1D1D1 border-radius 5px overflow-x auto margin 0 0 1em @@ -233,6 +233,7 @@ table line-height 1.6 border-width 1px 0 2px 1px border-color borderColor + font-weight bold &:last-child border-right solid 1px borderColor tbody @@ -271,6 +272,7 @@ body[data-theme="dark"] background-color lighten(themeDarkPreview, 5%) pre + border-color lighten(#21252B, 20%) code background-color transparent