Skip to content

Commit 17634c2

Browse files
Geist-zzmarijnh
authored andcommitted
[addon/edit/continuelist] Check mode.name AND helperType for "markdown"
1 parent 3bfc1ae commit 17634c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/edit/continuelist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// If we're not in Markdown mode, fall back to normal newlineAndIndent
2525
var eolState = cm.getStateAfter(pos.line);
2626
var inner = CodeMirror.innerMode(cm.getMode(), eolState);
27-
if (inner.mode.name !== "markdown") {
27+
if (inner.mode.name !== "markdown" && inner.mode.helperType !== "markdown") {
2828
cm.execCommand("newlineAndIndent");
2929
return;
3030
} else {

0 commit comments

Comments
 (0)