diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/inlines.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inlines.c b/src/inlines.c index c5b72ba..f41a62a 100644 --- a/src/inlines.c +++ b/src/inlines.c @@ -199,7 +199,7 @@ static inline bool skip_spaces(subject *subj) { bool skipped = false; - while (peek_char(subj) == ' ') { + while (peek_char(subj) == ' ' || peek_char(subj) == '\t') { advance(subj); skipped = true; } @@ -1192,6 +1192,7 @@ bufsize_t cmark_parse_reference_inline(cmark_strbuf *input, cmark_reference_map subj.pos = beforetitle; title = cmark_chunk_literal(""); } + // parse final spaces and newline: skip_spaces(&subj); if (!skip_line_end(&subj)) { |