File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -9242,16 +9242,22 @@ Visit www.commonmark.org/a.b.
9242
9242
9243
9243
When an autolink ends in `)`, we scan the entire autolink for the total number
9244
9244
of parentheses. If there is a greater number of closing parentheses than
9245
- opening ones, we don't consider the last character part of the autolink, in
9246
- order to facilitate including an autolink inside a parenthesis:
9245
+ opening ones, we don't consider the unmatched trailing parentheses part of the
9246
+ autolink, in order to facilitate including an autolink inside a parenthesis:
9247
9247
9248
9248
```````````````````````````````` example autolink
9249
9249
www.google.com/search?q=Markup+(business)
9250
9250
9251
+ www.google.com/search?q=Markup+(business)))
9252
+
9251
9253
(www.google.com/search?q=Markup+(business))
9254
+
9255
+ (www.google.com/search?q=Markup+(business)
9252
9256
.
9253
9257
<p><a href="http://www.google.com/search?q=Markup+(business)">www.google.com/search?q=Markup+(business)</a></p>
9258
+ <p><a href="http://www.google.com/search?q=Markup+(business)">www.google.com/search?q=Markup+(business)</a>))</p>
9254
9259
<p>(<a href="http://www.google.com/search?q=Markup+(business)">www.google.com/search?q=Markup+(business)</a>)</p>
9260
+ <p>(<a href="http://www.google.com/search?q=Markup+(business)">www.google.com/search?q=Markup+(business)</a></p>
9255
9261
````````````````````````````````
9256
9262
9257
9263
This check is only done when the link ends in a closing parentheses `)`, so if
You can’t perform that action at this time.
0 commit comments