Skip to content

Commit

Permalink
Don't allow list markers to be indented >= 4 spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Mar 25, 2018
1 parent 7125d81 commit 8a8d487
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/blocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,7 @@ static void open_new_blocks(cmark_parser *parser, cmark_node **container,
parser->first_nonspace + 1);
S_advance_offset(parser, input, input->len - 1 - parser->offset, false);
} else if ((!indented || cont_type == CMARK_NODE_LIST) &&
parser->indent < 4 &&
(matched = parse_list_marker(
parser->mem, input, parser->first_nonspace,
(*container)->type == CMARK_NODE_PARAGRAPH, &data))) {
Expand Down

0 comments on commit 8a8d487

Please sign in to comment.