Unverified Commit b36648a9 authored by Raccoon's avatar Raccoon

feat: add codemirror support markmap syntax

Signed-off-by: default avatarRaccoon <raccoon@hackmd.io>
parent e8b1a679
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment