diff --git a/src/renderer/plugins/editor-md-syntax.ts b/src/renderer/plugins/editor-md-syntax.ts index 746407ed..eba74024 100644 --- a/src/renderer/plugins/editor-md-syntax.ts +++ b/src/renderer/plugins/editor-md-syntax.ts @@ -235,6 +235,7 @@ export default { ctx.editor.tapMarkdownMonarchLanguage(mdLanguage => { mdLanguage.tokenizer.root.unshift( + [/^\s*[+\-*] \[[ xX]\]\s/, 'keyword'], [/==\S.*\S?==/, 'keyword'], [/(\[\[)([^[\]]+)(\]\])/, ['keyword.predefined', 'string', 'keyword.predefined']], [/~\S[^~]*\S?~/, 'string'],