diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-03-27 13:59:14 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-03-27 13:59:14 -0700 |
commit | b77c79c0183a378a736489743639ef3331e711c7 (patch) | |
tree | ef580e657f378b3ec6f3458f8cfb53b8728fe180 /src | |
parent | 095f5c4cb7f03dc48ce521ad74e76f6ee8514aee (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')
-rw-r--r-- | src/blocks.c | 2 |
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; |