Skip to content

Commit

Permalink
fix: correct regex for markdown syntax highlighting in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
purocean committed Dec 30, 2024
1 parent 04d723b commit c482203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/plugins/editor-md-syntax.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export default {
ctx.editor.tapMarkdownMonarchLanguage(mdLanguage => {
mdLanguage.tokenizer.root.unshift(
[/^\s*[+\-*] \[[ xX]\]\s/, 'keyword'],
[/==\S.*\S?==/, 'keyword'],
[/==\S.*?\S?==/, 'keyword'],
[/(!?\[\[)([^[\]]+)(\]\])/, ['keyword.predefined', 'string', 'keyword.predefined']],
[/~\S[^~]*\S?~/, 'string'],
[/\^\S[^^]*\S?\^/, 'string'],
Expand Down

0 comments on commit c482203

Please sign in to comment.