1
0
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:
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

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