mirror of https://github.com/status-im/codimd.git
feat: add codemirror support markmap syntax
Signed-off-by: Raccoon <raccoon@hackmd.io>
This commit is contained in:
parent
e8b1a679b3
commit
b36648a928
|
@ -139,9 +139,14 @@ export default class Editor {
|
|||
return null
|
||||
}
|
||||
}
|
||||
|
||||
CodeMirror.defineMode('vega', function (config, modeConfig) {
|
||||
return CodeMirror.overlayMode(CodeMirror.getMode(config, 'application/ld+json'), ignoreOverlay)
|
||||
})
|
||||
|
||||
CodeMirror.defineMode('markmap', function (config, modeConfig) {
|
||||
return CodeMirror.overlayMode(CodeMirror.getMode(config, 'gfm'), ignoreOverlay)
|
||||
})
|
||||
}
|
||||
|
||||
on (event, cb) {
|
||||
|
|
Loading…
Reference in New Issue