1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

minor bug fix

use mime for syntax mode instead of mode
fix style of markdown
This commit is contained in:
Dick Choi
2016-10-15 00:20:22 +09:00
parent fdd0c84441
commit 53989b918e
2 changed files with 5 additions and 2 deletions

View File

@@ -93,7 +93,8 @@ export default class CodeEditor extends React.Component {
setMode (mode) { setMode (mode) {
let syntax = CodeMirror.findModeByName(pass(mode)) let syntax = CodeMirror.findModeByName(pass(mode))
if (syntax == null) syntax = CodeMirror.findModeByName('Plain Text') 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) CodeMirror.autoLoadMode(this.editor, syntax.mode)
} }

View File

@@ -196,7 +196,7 @@ code
margin-right 2px margin-right 2px
pre pre
padding 0.5em !important padding 0.5em !important
border solid 1px alpha(borderColor, 0.5) border solid 1px #D1D1D1
border-radius 5px border-radius 5px
overflow-x auto overflow-x auto
margin 0 0 1em margin 0 0 1em
@@ -233,6 +233,7 @@ table
line-height 1.6 line-height 1.6
border-width 1px 0 2px 1px border-width 1px 0 2px 1px
border-color borderColor border-color borderColor
font-weight bold
&:last-child &:last-child
border-right solid 1px borderColor border-right solid 1px borderColor
tbody tbody
@@ -271,6 +272,7 @@ body[data-theme="dark"]
background-color lighten(themeDarkPreview, 5%) background-color lighten(themeDarkPreview, 5%)
pre pre
border-color lighten(#21252B, 20%)
code code
background-color transparent background-color transparent