cmark

My personal build of CMark ✏️

Commit
b77c79c0183a378a736489743639ef3331e711c7
Parent
095f5c4cb7f03dc48ce521ad74e76f6ee8514aee
Author
John MacFarlane <jgm@berkeley.edu>
Date

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

1 file changed, 1 insertion, 1 deletion

Status File Name N° Changes Insertions Deletions
Modified src/blocks.c 2 1 1
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;