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:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user