Skip to content

Commit b91a20f

Browse files
Dont add a bullet after a horizontal rule
1 parent d4f1daf commit b91a20f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/bootstrap-markdown.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,10 @@
874874
}
875875
}
876876

877+
if (chars.slice(priorNewlineIndex + 1, priorNewlineIndex + 4).join('') == '---') {
878+
break;
879+
}
880+
877881
var charFollowingLastLineBreak = chars[priorNewlineIndex + 1];
878882
if (charFollowingLastLineBreak === '-') {
879883
this.addBullet(enterIndex);

0 commit comments

Comments
 (0)