cmark

My personal build of CMark ✏️

Commit
baf5d11e04dc93ae12127faa727daeb5d0b6a63e
Parent
7bedf7d6b7dfae9681ac5d2c1631eb92d0c68e55
Author
John MacFarlane <jgm@berkeley.edu>
Date

skip_spaces: skip tabs too.

Diffstat

1 file changed, 2 insertions, 1 deletion

Status File Name N° Changes Insertions Deletions
Modified src/inlines.c 3 2 1
diff --git 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)) {