File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -69,8 +69,8 @@ function onDocumentLoad() {
69
69
text = text . replace ( / \[ (?: m e m b e r | p r o p e r t y | m e t h o d ) : ( [ \w ] + ) ( [ \w \. \s ] + ) \] \s * ( \( .* \) ) ? / gi, '<a onclick="window.parent.setUrlFragment(\'' + name + '.$2\')" target="_parent" title="' + name + '.$2" class="permalink">#</a> .<a onclick="window.parent.setUrlFragment(\'' + name + '.$2\')" id="$2">$2</a> $3 : <a class="param" onclick="window.parent.setUrlFragment(\'$1\')">$1</a>' ) ;
70
70
text = text . replace ( / \[ p a r a m : ( [ \w \. ] + ) ( [ \w \. \s ] + ) \] / gi, '$2 : <a class="param" onclick="window.parent.setUrlFragment(\'$1\')">$1</a>' ) ; // [param:name title]
71
71
72
- text = text . replace ( / \[ l i n k : ( [ \w | \: | \/ | \. | \- | \_ ] + ) \] / gi, '[link:$1 $1] ' ) ; // [link:url] to [link:url title ]
73
- text = text . replace ( / \[ l i n k : ( [ \w | \: | \/ | \. | \- | \_ | \( | \) | \? | \# | \= | \! ] + ) ( [ \w | \: | \/ | \. | \- | \_ | \s ] + ) \] / gi, '<a href="$1" target="_blank">$2</a>' ) ; // [link:url title]
72
+ text = text . replace ( / \[ l i n k : ( [ \w | \: | \/ | \. | \- | \_ | \( | \) | \? | \# | \= | \! | \~ ] + ) \] / gi, '<a href="$1" target="_blank">$1</a> ' ) ; // [link:url]
73
+ text = text . replace ( / \[ l i n k : ( [ \w | \: | \/ | \. | \- | \_ | \( | \) | \? | \# | \= | \! | \~ ] + ) ( [ \w | \: | \/ | \. | \- | \_ | \' | \s ] + ) \] / gi, '<a href="$1" target="_blank">$2</a>' ) ; // [link:url title]
74
74
text = text . replace ( / \* ( [ \w | \d | \" | \- | \( ] [ \w | \d | \ | \- | \/ | \+ | \- | \( | \) | \= | \, | \. \" ] * [ \w | \d | \" | \) ] | \w ) \* / gi, '<strong>$1</strong>' ) ; // *
75
75
76
76
text = text . replace ( / \[ e x a m p l e : ( [ \w \_ ] + ) \] / gi, '[example:$1 $1]' ) ; // [example:name] to [example:name title]
You can’t perform that action at this time.
0 commit comments