File tree 3 files changed +9
-5
lines changed
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)
526
526
. getRegex ( ) ;
527
527
528
528
inline . _inside = / (?: \[ [ ^ \] ] * \] | \\ [ \[ \] ] | [ ^ \[ \] ] | \] (? = [ ^ \[ ] * \] ) ) * / ;
529
- inline . _href = / \s * < ? ( (?: \\ [ ( ) ] ? | [ ^ \s ( ) \\ ] ) * ?) > ? (?: \s + [ ' " ] ( [ \s \S ] * ?) [ ' " ] ) ? \s * / ;
529
+ inline . _href = / \s * < ? ( (?: \\ [ ( ) ] ? | \( [ ^ \s ( ) \\ ] * \) | [ ^ \s ( ) \\ ] ) * ?) > ? (?: \s + [ ' " ] ( [ \s \S ] * ?) [ ' " ] ) ? \s * / ;
530
530
531
531
inline . link = edit ( inline . link )
532
532
. 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>
38
38
39
39
< p > < a href ="(foo) "> link</ a > </ p >
40
40
41
- < h3 id ="example-468 "> Example 468 </ h3 >
41
+ < h3 id ="example-4680 "> Example 4680 </ h3 >
42
42
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 >
44
46
45
47
< h3 id ="example-469 "> Example 469</ h3 >
46
48
Original file line number Diff line number Diff line change 39
39
40
40
[ link] ( \( foo\) )
41
41
42
- ### Example 468
42
+ ### Example 4680
43
43
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) )
45
47
46
48
### Example 469
47
49
You can’t perform that action at this time.
0 commit comments