Skip to content
This repository was archived by the owner on Apr 16, 2026. It is now read-only.

Commit 31319ee

Browse files
committed
[markdown mode] Make test pass
1 parent cb5416f commit 31319ee

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

mode/markdown/markdown.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,10 @@ CodeMirror.defineMode("markdown", function(cmCfg, modeCfg) {
362362

363363
if (ch === '\\') {
364364
stream.next();
365-
if (modeCfg.highlightFormatting) return getType(state) + " escape";
365+
if (modeCfg.highlightFormatting) {
366+
var type = getType(state);
367+
return type ? type + " formatting-escape" : "formatting-escape";
368+
}
366369
}
367370

368371
// Matches link titles present on next line

mode/markdown/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"[link&formatting&formatting-link <][link user@example.com][link&formatting&formatting-link >]");
5555

5656
FT("formatting_escape",
57-
"[formatting&formatting-escape \\]*");
57+
"[formatting-escape \\*]");
5858

5959
MT("plainText",
6060
"foo");

0 commit comments

Comments
 (0)