From b77c79c0183a378a736489743639ef3331e711c7 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 27 Mar 2015 13:59:14 -0700 Subject: Removed an unnecessary check. By the time we check for a list start, we've already checked for an HRULE, so we don't need to repeat that check here. Thanks to Robin Stocker for pointing out a similar redundancy in commonmark.js. --- src/blocks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/blocks.c b/src/blocks.c index fc9cbb4..a15f819 100644 --- a/src/blocks.c +++ b/src/blocks.c @@ -348,7 +348,7 @@ static int parse_list_marker(cmark_chunk *input, int pos, cmark_list **dataptr) startpos = pos; c = peek_at(input, pos); - if ((c == '*' || c == '-' || c == '+') && !scan_hrule(input, pos)) { + if (c == '*' || c == '-' || c == '+') { pos++; if (!cmark_isspace(peek_at(input, pos))) { return 0; -- cgit v1.2.3