From be18e71f5baec16da794b0f006071799fc9a4db0 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 19 Mar 2019 17:46:23 -0700 Subject: Update spec. Fix `[link]()`. --- src/inlines.c | 3 +++ test/spec.txt | 9 +++++++++ 2 files changed, 12 insertions(+) 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); } diff --git a/test/spec.txt b/test/spec.txt index 91551e5..dc944d0 100644 --- a/test/spec.txt +++ b/test/spec.txt @@ -7417,6 +7417,15 @@ bar>) bar>)

```````````````````````````````` +Pointy brackets that enclose links must be unescaped: + +```````````````````````````````` example +[link]() +. +

link

+```````````````````````````````` + + Parentheses inside the link destination may be escaped: ```````````````````````````````` example -- cgit v1.2.3