Desktop: Toggle math highlighting in editor with markdown options (#4631)

pull/4660/head
Caleb John 2021-03-11 07:37:12 -07:00 committed by GitHub
parent c4fe38e632
commit 4d0beb6d47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);