From c1e0183685e22282cbf5651970200fe56a712002 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 25 Mar 2019 22:14:11 -0700 Subject: Disallow link destination beginning with `<` unless it is inside `<..>`. This brings the description in line with the spec example: ``` [foo]: (baz) [foo] .

[foo]: (baz)

[foo]

``` Closes #538. --- spec.txt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'spec.txt') diff --git a/spec.txt b/spec.txt index a53e762..0bbd360 100644 --- a/spec.txt +++ b/spec.txt @@ -7338,12 +7338,13 @@ A [link destination](@) consists of either closing `>` that contains no line breaks or unescaped `<` or `>` characters, or -- a nonempty sequence of characters that does not include - ASCII space or control characters, and includes parentheses - only if (a) they are backslash-escaped or (b) they are part of - a balanced pair of unescaped parentheses. (Implementations - may impose limits on parentheses nesting to avoid performance - issues, but at least three levels of nesting should be supported.) +- a nonempty sequence of characters that does not start with + `<`, does not include ASCII space or control characters, and + includes parentheses only if (a) they are backslash-escaped or + (b) they are part of a balanced pair of unescaped parentheses. + (Implementations may impose limits on parentheses nesting to + avoid performance issues, but at least three levels of nesting + should be supported.) A [link title](@) consists of either -- cgit v1.2.3