File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -526,7 +526,7 @@ inline.tag = edit(inline.tag)
526526 . getRegex ( ) ;
527527
528528inline . _inside = / (?: \[ [ ^ \] ] * \] | \\ [ \[ \] ] | [ ^ \[ \] ] | \] (? = [ ^ \[ ] * \] ) ) * / ;
529- inline . _href = / \s * < ? ( (?: \\ [ ( ) ] ? | [ ^ \s ( ) \\ ] ) * ?) > ? (?: \s + [ ' " ] ( [ \s \S ] * ?) [ ' " ] ) ? \s * / ;
529+ inline . _href = / \s * < ? ( (?: \\ [ ( ) ] ? | \( [ ^ \s ( ) \\ ] * \) | [ ^ \s ( ) \\ ] ) * ?) > ? (?: \s + [ ' " ] ( [ \s \S ] * ?) [ ' " ] ) ? \s * / ;
530530
531531inline . link = edit ( inline . link )
532532 . replace ( 'inside' , inline . _inside )
Original file line number Diff line number Diff line change @@ -38,9 +38,11 @@ <h3 id="example-467">Example 467</h3>
3838
3939< p > < a href ="(foo) "> link</ a > </ p >
4040
41- < h3 id ="example-468 "> Example 468 </ h3 >
41+ < h3 id ="example-4680 "> Example 4680 </ h3 >
4242
43- < p > < a href ="foo(and(bar)) "> link</ a > </ p >
43+ < p > ONE LEVEL of parentheses are allowed without escaping, as long as they are balanced:</ p >
44+
45+ < p > < a href ="foo(bar) "> link</ a > </ p >
4446
4547< h3 id ="example-469 "> Example 469</ h3 >
4648
Original file line number Diff line number Diff line change 3939
4040[ link] ( \( foo\) )
4141
42- ### Example 468
42+ ### Example 4680
4343
44- [ link] ( foo(and(bar)) )
44+ ONE LEVEL of parentheses are allowed without escaping, as long as they are balanced:
45+
46+ [ link] ( foo(bar) )
4547
4648### Example 469
4749
You can’t perform that action at this time.
0 commit comments