File tree 3 files changed +11
-1
lines changed
3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -728,7 +728,7 @@ InlineLexer.prototype.output = function(src) {
728
728
if ( cap = this . rules . link . exec ( src ) ) {
729
729
var lastParenIndex = findClosingBracket ( cap [ 2 ] , '()' ) ;
730
730
if ( lastParenIndex > - 1 ) {
731
- var linkLen = cap [ 0 ] . length - ( cap [ 2 ] . length - lastParenIndex ) - ( cap [ 3 ] || '' ) . length ;
731
+ var linkLen = 4 + cap [ 1 ] . length + lastParenIndex ;
732
732
cap [ 2 ] = cap [ 2 ] . substring ( 0 , lastParenIndex ) ;
733
733
cap [ 0 ] = cap [ 0 ] . substring ( 0 , linkLen ) . trim ( ) ;
734
734
cap [ 3 ] = '' ;
Original file line number Diff line number Diff line change
1
+ < p > (< a href ="http://example.com/1 "> one</ a > ) (< a href ="http://example.com/2 "> two</ a > )</ p >
2
+
3
+ < p > (< a href ="http://example.com/1 "> one</ a > ) (< a href ="http://example.com/2 "> two</ a > )</ p >
4
+
5
+ < p > (< a href ="http://example.com/1 " title ="a "> one</ a > ) (< a href ="http://example.com/2 " title ="b "> two</ a > )</ p >
Original file line number Diff line number Diff line change
1
+ ([ one] ( http://example.com/1 ) ) ([ two] ( http://example.com/2 ) )
2
+
3
+ ([ one] ( http://example.com/1 ) ) ([ two] ( http://example.com/2 ) )
4
+
5
+ ([ one] ( http://example.com/1 " a ") ) ([ two] ( http://example.com/2 " b ") )
You can’t perform that action at this time.
0 commit comments