mirror of
https://github.com/laurent22/joplin.git
synced 2025-03-26 21:12:59 +02:00
Desktop: Toggle math highlighting in editor with markdown options (#4631)
This commit is contained in:
parent
c4fe38e632
commit
4d0beb6d47
@ -68,7 +68,7 @@ export default function useJoplinMode(CodeMirror: any) {
|
||||
|
||||
if (state.openCharacter === '$$' && blockPos !== -1) nextTokenPos = blockPos;
|
||||
if (state.openCharacter === '$' && inlinePos !== -1) nextTokenPos = inlinePos;
|
||||
} else if (!currentState.code) {
|
||||
} else if (!currentState.code && Setting.value('markdown.plugin.katex')) {
|
||||
const blockPos = findToken(stream, blockKatexOpenRE);
|
||||
const inlinePos = findToken(stream, inlineKatexOpenRE);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user