Skip to content

Commit b8f1e23

Browse files
committed
Fix wrong regex for fenced math block
1 parent a1e8c5c commit b8f1e23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mode/markdown/markdown_math.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ CodeMirror.defineMode("markdown", function(cmCfg, modeCfg) {
212212
if (modeCfg.highlightFormatting) state.formatting = "code-block";
213213
state.code = -1
214214
return getType(state);
215-
} else if (match = stream.match(fencedCodeRE, true)) {
215+
} else if (match = stream.match(fencedMathRE, true)) {
216216
state.fencedChars = match[1]
217217
// try switching mode
218218
state.localMode = getMode(match[2]);

0 commit comments

Comments
 (0)