summaryrefslogtreecommitdiff
path: root/src/blocks.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-03-27 13:59:14 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-03-27 13:59:14 -0700
commitb77c79c0183a378a736489743639ef3331e711c7 (patch)
treeef580e657f378b3ec6f3458f8cfb53b8728fe180 /src/blocks.c
parent095f5c4cb7f03dc48ce521ad74e76f6ee8514aee (diff)
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 (limited to 'src/blocks.c')
-rw-r--r--src/blocks.c2
1 files changed, 1 insertions, 1 deletions
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;