File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -468,7 +468,7 @@ var inline = {
468
468
nolink : / ^ ! ? \[ ( (?: \[ [ ^ \] ] * \] | \\ [ \[ \] ] | [ ^ \[ \] ] ) * ) \] / ,
469
469
strong : / ^ _ _ ( [ \s \S ] + ?) _ _ (? ! _ ) | ^ \* \* ( [ \s \S ] + ?) \* \* (? ! \* ) / ,
470
470
em : / ^ _ ( [ ^ \s _ ] (?: [ ^ _ ] | _ _ ) + ?[ ^ \s _ ] ) _ \b | ^ \* ( (?: \* \* | [ ^ * ] ) + ?) \* (? ! \* ) / ,
471
- code : / ^ ( ` + ) ( \s * ) ( [ \s \S ] * ?[ ^ ` ] ? ) \2 \1(? ! ` ) / ,
471
+ code : / ^ ( ` + ) \s * ( [ \s \S ] * ?[ ^ ` ] ? ) \s * \1(? ! ` ) / ,
472
472
br : / ^ { 2 , } \n (? ! \s * $ ) / ,
473
473
del : noop ,
474
474
text : / ^ [ \s \S ] + ?(? = [ \\ < ! \[ ` * ] | \b _ | { 2 , } \n | $ ) /
@@ -691,7 +691,7 @@ InlineLexer.prototype.output = function(src) {
691
691
// code
692
692
if ( cap = this . rules . code . exec ( src ) ) {
693
693
src = src . substring ( cap [ 0 ] . length ) ;
694
- out += this . renderer . codespan ( escape ( cap [ 3 ] . trim ( ) , true ) ) ;
694
+ out += this . renderer . codespan ( escape ( cap [ 2 ] . trim ( ) , true ) ) ;
695
695
continue ;
696
696
}
697
697
You can’t perform that action at this time.
0 commit comments