- Commit
- be18e71f5baec16da794b0f006071799fc9a4db0
- Parent
- ecd0c8c23f011e845ca96704b154083c0f07a994
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Update spec. Fix `[link](<foo\>)`.
My personal build of CMark ✏️
Update spec. Fix `[link](<foo\>)`.
2 files changed, 12 insertions, 0 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | src/inlines.c | 3 | 3 | 0 |
Modified | test/spec.txt | 9 | 9 | 0 |
diff --git 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); }
diff --git a/test/spec.txt b/test/spec.txt @@ -7417,6 +7417,15 @@ bar>) bar>)</p> ```````````````````````````````` +Pointy brackets that enclose links must be unescaped: + +```````````````````````````````` example +[link](<foo\>) +. +<p><a href="%3Cfoo%3E">link</a></p> +```````````````````````````````` + + Parentheses inside the link destination may be escaped: ```````````````````````````````` example