Skip to content

Commit

Permalink
Don't allow list items that are indented >= 4 spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Mar 25, 2018
1 parent 04cebc6 commit 691fc67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ var parseListMarker = function(parser, container) {
delimiter: null,
padding: null,
markerOffset: parser.indent };
if (parser.indent >= 4) {
return null;
}
if ((match = rest.match(reBulletListMarker))) {
data.type = 'bullet';
data.bulletChar = match[0][0];
Expand Down

0 comments on commit 691fc67

Please sign in to comment.