diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-03-19 17:46:23 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-03-19 17:46:23 -0700 |
commit | be18e71f5baec16da794b0f006071799fc9a4db0 (patch) | |
tree | dd2c1bf31ebf4fc7ec9b7cde28ddf9fdc8485bd2 /src | |
parent | ecd0c8c23f011e845ca96704b154083c0f07a994 (diff) |
Update spec. Fix `[link](<foo\>)`.
Diffstat (limited to 'src')
-rw-r--r-- | src/inlines.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/inlines.c b/src/inlines.c index dc899dc..bab607a 100644 --- a/src/inlines.c +++ b/src/inlines.c @@ -970,6 +970,9 @@ static bufsize_t manual_scan_link_url(cmark_chunk *input, bufsize_t offset, else ++i; } + if (i >= input->len) { + return manual_scan_link_url_2(input, offset, output); + } } else { return manual_scan_link_url_2(input, offset, output); } |