diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-08-01 15:55:47 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-08-01 15:57:16 -0700 |
commit | 6d93ace6d09273c44b497a407d55c3a419ef38b6 (patch) | |
tree | b996b90a08efeb86f3ac7085008eb09a25e64df8 | |
parent | 97354326ebf531c2ac1ec9c96440aaa3eb047366 (diff) |
Note that implementations may impose limit on paren nesting in URLs.
-rw-r--r-- | changelog.txt | 5 | ||||
-rw-r--r-- | spec.txt | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/changelog.txt b/changelog.txt index 6881c13..0f3fdbb 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,7 +2,10 @@ * Allow unlimited balanced pairs of parentheses in link URLs (@kivikakk, jgm/cmark#166). The rationale is that there are many URLs - containing unescaped nested parentheses. + containing unescaped nested parentheses. Note that + implementations are allowed to impose limits on parentheses + nesting for performance reasons, but at least three levels + of nesting should be supported. * Change Rule 14 for Emphasis. Previously the nesting Strong (Emph (...)) was preferred over Emph (Strong (...)). This change makes Emph (Strong (...)) preferred. @@ -7159,7 +7159,9 @@ A [link destination](@) consists of either - 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. + 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 @@ -7265,7 +7267,7 @@ Parentheses inside the link destination may be escaped: <p><a href="(foo)">link</a></p> ```````````````````````````````` -Any number parentheses are allowed without escaping, as long as they are +Any number of parentheses are allowed without escaping, as long as they are balanced: ```````````````````````````````` example |