Skip to content

Commit be18e71

Browse files
committed
Update spec. Fix [link](<foo\>).
1 parent ecd0c8c commit be18e71

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/inlines.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,9 @@ static bufsize_t manual_scan_link_url(cmark_chunk *input, bufsize_t offset,
970970
else
971971
++i;
972972
}
973+
if (i >= input->len) {
974+
return manual_scan_link_url_2(input, offset, output);
975+
}
973976
} else {
974977
return manual_scan_link_url_2(input, offset, output);
975978
}

test/spec.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7417,6 +7417,15 @@ bar>)
74177417
bar>)</p>
74187418
````````````````````````````````
74197419

7420+
Pointy brackets that enclose links must be unescaped:
7421+
7422+
```````````````````````````````` example
7423+
[link](<foo\>)
7424+
.
7425+
<p><a href="%3Cfoo%3E">link</a></p>
7426+
````````````````````````````````
7427+
7428+
74207429
Parentheses inside the link destination may be escaped:
74217430

74227431
```````````````````````````````` example

0 commit comments

Comments
 (0)