File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -542,7 +542,7 @@ var inline = {
542
542
+ '|^<\\?[\\s\\S]*?\\?>' // processing instruction, e.g. <?php ?>
543
543
+ '|^<![a-zA-Z]+\\s[\\s\\S]*?>' // declaration, e.g. <!DOCTYPE html>
544
544
+ '|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>' , // CDATA section
545
- link : / ^ ! ? \[ ( l a b e l ) \] \( h r e f (?: \s + ( t i t l e ) ) ? \s * \) / ,
545
+ link : / ^ ! ? \[ ( l a b e l ) \] \( \s * ( h r e f ) (?: \s + ( t i t l e ) ) ? \s * \) / ,
546
546
reflink : / ^ ! ? \[ ( l a b e l ) \] \[ (? ! \s * \] ) ( (?: \\ [ \[ \] ] ? | [ ^ \[ \] \\ ] ) + ) \] / ,
547
547
nolink : / ^ ! ? \[ (? ! \s * \] ) ( (?: \[ [ ^ \[ \] ] * \] | \\ [ \[ \] ] | [ ^ \[ \] ] ) * ) \] (?: \[ \] ) ? / ,
548
548
strong : / ^ _ _ ( [ ^ \s _ ] ) _ _ (? ! _ ) | ^ \* \* ( [ ^ \s * ] ) \* \* (? ! \* ) | ^ _ _ ( [ ^ \s ] [ \s \S ] * ?[ ^ \s ] ) _ _ (? ! _ ) | ^ \* \* ( [ ^ \s ] [ \s \S ] * ?[ ^ \s ] ) \* \* (? ! \* ) / ,
@@ -574,8 +574,8 @@ inline.tag = edit(inline.tag)
574
574
. replace ( 'attribute' , inline . _attribute )
575
575
. getRegex ( ) ;
576
576
577
- inline . _label = / (?: \[ [ ^ \[ \] ] * \] | \\ [ \[ \] ] ? | ` [ ^ ` ] * ` | ` (? ! ` ) | [ ^ \[ \] \\ ` ] ) * ?/ ;
578
- inline . _href = / \s * ( < (?: \\ [ < > ] ? | [ ^ \s < > \\ ] ) * > | [ ^ \s \x00 - \x1f ] * ) / ;
577
+ inline . _label = / (?: \[ [ ^ \[ \] ] * \] | \\ . | ` [ ^ ` ] * ` | [ ^ \[ \] \\ ` ] ) * ?/ ;
578
+ inline . _href = / < (?: \\ [ < > ] ? | [ ^ \s < > \\ ] ) * > | [ ^ \s \x00 - \x1f ] * / ;
579
579
inline . _title = / " (?: \\ " ? | [ ^ " \\ ] ) * " | ' (?: \\ ' ? | [ ^ ' \\ ] ) * ' | \( (?: \\ \) ? | [ ^ ) \\ ] ) * \) / ;
580
580
581
581
inline . link = edit ( inline . link )
You can’t perform that action at this time.
0 commit comments