Skip to content

Commit d5dccf7

Browse files
committed
Update markdown_math.js for version 5.36
1 parent 2c5ef57 commit d5dccf7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mode/markdown/markdown_math.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ CodeMirror.defineMode("markdown", function(cmCfg, modeCfg) {
576576
return type + tokenTypes.linkEmail;
577577
}
578578

579-
if (modeCfg.xml && ch === '<' && stream.match(/^(!--|[a-z]+(?:\s+[a-z_:.\-]+(?:\s*=\s*[^ >]+)?)*\s*>)/i, false)) {
579+
if (modeCfg.xml && ch === '<' && stream.match(/^(!--|[a-z]+(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*>)/i, false)) {
580580
var end = stream.string.indexOf(">", stream.pos);
581581
if (end != -1) {
582582
var atts = stream.string.substring(stream.start, end);
@@ -894,8 +894,8 @@ CodeMirror.defineMode("markdown", function(cmCfg, modeCfg) {
894894
},
895895

896896
indent: function(state, textAfter, line) {
897-
if (state.block == htmlBlock) return htmlMode.indent(state.htmlState, textAfter, line)
898-
if (state.localState) return state.localMode.indent(state.localState, textAfter, line)
897+
if (state.block == htmlBlock && htmlMode.indent) return htmlMode.indent(state.htmlState, textAfter, line)
898+
if (state.localState && state.localMode.indent) return state.localMode.indent(state.localState, textAfter, line)
899899
return CodeMirror.Pass
900900
},
901901

0 commit comments

Comments
 (0)