cmark

Unnamed repository; edit this file 'description' to name the repository.

commit b77c79c0183a378a736489743639ef3331e711c7
parent 095f5c4cb7f03dc48ce521ad74e76f6ee8514aee
Author: John MacFarlane <jgm@berkeley.edu>
Date:   Fri, 27 Mar 2015 13:59:14 -0700

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.

Diffstat:
Msrc/blocks.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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;