diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-03-25 22:14:11 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-03-25 22:14:11 -0700 |
commit | c1e0183685e22282cbf5651970200fe56a712002 (patch) | |
tree | a6e8deadfc55d768c63d85d4966a5a0822dd62ab | |
parent | b27b9ea0bfbfe036240d13bb374ac9706bca8649 (diff) |
Disallow link destination beginning with `<` unless it is inside `<..>`.
This brings the description in line with the spec example:
```
[foo]: <bar>(baz)
[foo]
.
<p>[foo]: <bar>(baz)</p>
<p>[foo]</p>
```
Closes #538.
-rw-r--r-- | spec.txt | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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 |