Skip to content

Commit df4a306

Browse files
lemmonmarijnh
authored andcommitted
[markdown mode] detecting xml mode inside markdown
1 parent 563e0ef commit df4a306

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mode/markdown/markdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ CodeMirror.defineMode("markdown", function(cmCfg, modeCfg) {
534534
return type + tokenTypes.linkEmail;
535535
}
536536

537-
if (modeCfg.xml && ch === '<' && stream.match(/^(!--|[a-z]+(?:\s+[a-z_:.\-]+(?:\s*=\s*[^ >]+)?)*\s*>)/i, false)) {
537+
if (modeCfg.xml && ch === '<' && stream.match(/^(!--|[a-z]+(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*>)/i, false)) {
538538
var end = stream.string.indexOf(">", stream.pos);
539539
if (end != -1) {
540540
var atts = stream.string.substring(stream.start, end);

0 commit comments

Comments
 (0)