@@ -209,7 +209,7 @@ protected function stripLinkDefinitions($text) {
209
209
)? # title is optional
210
210
(?:\n+|\Z)
211
211
}xm ' ,
212
- array (& $ this , '_stripLinkDefinitions_callback ' ),
212
+ array ($ this , '_stripLinkDefinitions_callback ' ),
213
213
$ text );
214
214
return $ text ;
215
215
}
@@ -356,7 +356,7 @@ protected function hashHTMLBlocks($text) {
356
356
357
357
)
358
358
)}Sxmi ' ,
359
- array (& $ this , '_hashHTMLBlocks_callback ' ),
359
+ array ($ this , '_hashHTMLBlocks_callback ' ),
360
360
$ text );
361
361
362
362
return $ text ;
@@ -500,7 +500,7 @@ protected function runSpanGamut($text) {
500
500
protected function doHardBreaks ($ text ) {
501
501
# Do hard breaks:
502
502
return preg_replace_callback ('/ {2,}\n/ ' ,
503
- array (& $ this , '_doHardBreaks_callback ' ), $ text );
503
+ array ($ this , '_doHardBreaks_callback ' ), $ text );
504
504
}
505
505
protected function _doHardBreaks_callback ($ matches ) {
506
506
return $ this ->hashPart ("<br $ this ->empty_element_suffix \n" );
@@ -531,7 +531,7 @@ protected function doAnchors($text) {
531
531
\]
532
532
)
533
533
}xs ' ,
534
- array (& $ this , '_doAnchors_reference_callback ' ), $ text );
534
+ array ($ this , '_doAnchors_reference_callback ' ), $ text );
535
535
536
536
#
537
537
# Next, inline-style links: [link text](url "optional title")
@@ -558,7 +558,7 @@ protected function doAnchors($text) {
558
558
\)
559
559
)
560
560
}xs ' ,
561
- array (& $ this , '_doAnchors_inline_callback ' ), $ text );
561
+ array ($ this , '_doAnchors_inline_callback ' ), $ text );
562
562
563
563
#
564
564
# Last, handle reference-style shortcuts: [link text]
@@ -572,7 +572,7 @@ protected function doAnchors($text) {
572
572
\]
573
573
)
574
574
}xs ' ,
575
- array (& $ this , '_doAnchors_reference_callback ' ), $ text );
575
+ array ($ this , '_doAnchors_reference_callback ' ), $ text );
576
576
577
577
$ this ->in_anchor = false ;
578
578
return $ text ;
@@ -654,7 +654,7 @@ protected function doImages($text) {
654
654
655
655
)
656
656
}xs ' ,
657
- array (& $ this , '_doImages_reference_callback ' ), $ text );
657
+ array ($ this , '_doImages_reference_callback ' ), $ text );
658
658
659
659
#
660
660
# Next, handle inline images: 
@@ -683,7 +683,7 @@ protected function doImages($text) {
683
683
\)
684
684
)
685
685
}xs ' ,
686
- array (& $ this , '_doImages_inline_callback ' ), $ text );
686
+ array ($ this , '_doImages_inline_callback ' ), $ text );
687
687
688
688
return $ text ;
689
689
}
@@ -743,7 +743,7 @@ protected function doHeaders($text) {
743
743
# --------
744
744
#
745
745
$ text = preg_replace_callback ('{ ^(.+?)[ ]*\n(=+|-+)[ ]*\n+ }mx ' ,
746
- array (& $ this , '_doHeaders_callback_setext ' ), $ text );
746
+ array ($ this , '_doHeaders_callback_setext ' ), $ text );
747
747
748
748
# atx-style headers:
749
749
# # Header 1
@@ -760,7 +760,7 @@ protected function doHeaders($text) {
760
760
\#* # optional closing # \'s (not counted)
761
761
\n+
762
762
}xm ' ,
763
- array (& $ this , '_doHeaders_callback_atx ' ), $ text );
763
+ array ($ this , '_doHeaders_callback_atx ' ), $ text );
764
764
765
765
return $ text ;
766
766
}
@@ -833,14 +833,14 @@ protected function doLists($text) {
833
833
^
834
834
' .$ whole_list_re .'
835
835
}mx ' ,
836
- array (& $ this , '_doLists_callback ' ), $ text );
836
+ array ($ this , '_doLists_callback ' ), $ text );
837
837
}
838
838
else {
839
839
$ text = preg_replace_callback ('{
840
840
(?:(?<=\n)\n|\A\n?) # Must eat the newline
841
841
' .$ whole_list_re .'
842
842
}mx ' ,
843
- array (& $ this , '_doLists_callback ' ), $ text );
843
+ array ($ this , '_doLists_callback ' ), $ text );
844
844
}
845
845
}
846
846
@@ -907,7 +907,7 @@ protected function processListItems($list_str, $marker_any_re) {
907
907
(?:(\n+(?=\n))|\n) # tailing blank line = $5
908
908
(?= \n* (\z | \2 ( ' .$ marker_any_re .') (?:[ ]+|(?=\n))))
909
909
}xm ' ,
910
- array (& $ this , '_processListItems_callback ' ), $ list_str );
910
+ array ($ this , '_processListItems_callback ' ), $ list_str );
911
911
912
912
$ this ->list_level --;
913
913
return $ list_str ;
@@ -951,7 +951,7 @@ protected function doCodeBlocks($text) {
951
951
)
952
952
((?=^[ ]{0, ' .$ this ->tab_width .'}\S)|\Z) # Lookahead for non-space at line-start, or end of doc
953
953
}xm ' ,
954
- array (& $ this , '_doCodeBlocks_callback ' ), $ text );
954
+ array ($ this , '_doCodeBlocks_callback ' ), $ text );
955
955
956
956
return $ text ;
957
957
}
@@ -1151,7 +1151,7 @@ protected function doBlockQuotes($text) {
1151
1151
)+
1152
1152
)
1153
1153
/xm ' ,
1154
- array (& $ this , '_doBlockQuotes_callback ' ), $ text );
1154
+ array ($ this , '_doBlockQuotes_callback ' ), $ text );
1155
1155
1156
1156
return $ text ;
1157
1157
}
@@ -1165,7 +1165,7 @@ protected function _doBlockQuotes_callback($matches) {
1165
1165
# These leading spaces cause problem with <pre> content,
1166
1166
# so we need to fix that:
1167
1167
$ bq = preg_replace_callback ('{(\s*<pre>.+?</pre>)}sx ' ,
1168
- array (& $ this , '_doBlockQuotes_callback2 ' ), $ bq );
1168
+ array ($ this , '_doBlockQuotes_callback2 ' ), $ bq );
1169
1169
1170
1170
return "\n" . $ this ->hashBlock ("<blockquote> \n$ bq \n</blockquote> " )."\n\n" ;
1171
1171
}
@@ -1280,7 +1280,7 @@ protected function encodeAmpsAndAngles($text) {
1280
1280
1281
1281
protected function doAutoLinks ($ text ) {
1282
1282
$ text = preg_replace_callback ('{<((https?|ftp|dict):[^ \'">\s]+)>}i ' ,
1283
- array (& $ this , '_doAutoLinks_url_callback ' ), $ text );
1283
+ array ($ this , '_doAutoLinks_url_callback ' ), $ text );
1284
1284
1285
1285
# Email addresses: <address@domain.foo>
1286
1286
$ text = preg_replace_callback ('{
@@ -1301,8 +1301,8 @@ protected function doAutoLinks($text) {
1301
1301
)
1302
1302
>
1303
1303
}xi ' ,
1304
- array (& $ this , '_doAutoLinks_email_callback ' ), $ text );
1305
- $ text = preg_replace_callback ('{<(tel:([^ \'">\s]+))>}i ' ,array (& $ this , '_doAutoLinks_tel_callback ' ), $ text );
1304
+ array ($ this , '_doAutoLinks_email_callback ' ), $ text );
1305
+ $ text = preg_replace_callback ('{<(tel:([^ \'">\s]+))>}i ' ,array ($ this , '_doAutoLinks_tel_callback ' ), $ text );
1306
1306
1307
1307
return $ text ;
1308
1308
}
@@ -1470,7 +1470,7 @@ protected function detab($text) {
1470
1470
# appropriate number of space between each blocks.
1471
1471
1472
1472
$ text = preg_replace_callback ('/^.*\t.*$/m ' ,
1473
- array (& $ this , '_detab_callback ' ), $ text );
1473
+ array ($ this , '_detab_callback ' ), $ text );
1474
1474
1475
1475
return $ text ;
1476
1476
}
@@ -1510,7 +1510,7 @@ protected function unhash($text) {
1510
1510
# Swap back in all the tags hashed by _HashHTMLBlocks.
1511
1511
#
1512
1512
return preg_replace_callback ('/(.)\x1A[0-9]+\1/ ' ,
1513
- array (& $ this , '_unhash_callback ' ), $ text );
1513
+ array ($ this , '_unhash_callback ' ), $ text );
1514
1514
}
1515
1515
protected function _unhash_callback ($ matches ) {
1516
1516
return $ this ->html_hashes [$ matches [0 ]];
@@ -1716,7 +1716,7 @@ protected function stripLinkDefinitions($text) {
1716
1716
(?:[ ]* ' .$ this ->id_class_attr_catch_re .' )? # $5 = extra id & class attr
1717
1717
(?:\n+|\Z)
1718
1718
}xm ' ,
1719
- array (& $ this , '_stripLinkDefinitions_callback ' ),
1719
+ array ($ this , '_stripLinkDefinitions_callback ' ),
1720
1720
$ text );
1721
1721
return $ text ;
1722
1722
}
@@ -2227,7 +2227,7 @@ protected function doAnchors($text) {
2227
2227
\]
2228
2228
)
2229
2229
}xs ' ,
2230
- array (& $ this , '_doAnchors_reference_callback ' ), $ text );
2230
+ array ($ this , '_doAnchors_reference_callback ' ), $ text );
2231
2231
2232
2232
#
2233
2233
# Next, inline-style links: [link text](url "optional title")
@@ -2255,7 +2255,7 @@ protected function doAnchors($text) {
2255
2255
(?:[ ]? ' .$ this ->id_class_attr_catch_re .' )? # $8 = id/class attributes
2256
2256
)
2257
2257
}xs ' ,
2258
- array (& $ this , '_doAnchors_inline_callback ' ), $ text );
2258
+ array ($ this , '_doAnchors_inline_callback ' ), $ text );
2259
2259
2260
2260
#
2261
2261
# Last, handle reference-style shortcuts: [link text]
@@ -2269,7 +2269,7 @@ protected function doAnchors($text) {
2269
2269
\]
2270
2270
)
2271
2271
}xs ' ,
2272
- array (& $ this , '_doAnchors_reference_callback ' ), $ text );
2272
+ array ($ this , '_doAnchors_reference_callback ' ), $ text );
2273
2273
2274
2274
$ this ->in_anchor = false ;
2275
2275
return $ text ;
@@ -2356,7 +2356,7 @@ protected function doImages($text) {
2356
2356
2357
2357
)
2358
2358
}xs ' ,
2359
- array (& $ this , '_doImages_reference_callback ' ), $ text );
2359
+ array ($ this , '_doImages_reference_callback ' ), $ text );
2360
2360
2361
2361
#
2362
2362
# Next, handle inline images: 
@@ -2386,7 +2386,7 @@ protected function doImages($text) {
2386
2386
(?:[ ]? ' .$ this ->id_class_attr_catch_re .' )? # $8 = id/class attributes
2387
2387
)
2388
2388
}xs ' ,
2389
- array (& $ this , '_doImages_inline_callback ' ), $ text );
2389
+ array ($ this , '_doImages_inline_callback ' ), $ text );
2390
2390
2391
2391
return $ text ;
2392
2392
}
@@ -2458,7 +2458,7 @@ protected function doHeaders($text) {
2458
2458
(?:[ ]+ ' .$ this ->id_class_attr_catch_re .' )? # $3 = id/class attributes
2459
2459
[ ]*\n(=+|-+)[ ]*\n+ # $3: Header footer
2460
2460
}mx ' ,
2461
- array (& $ this , '_doHeaders_callback_setext ' ), $ text );
2461
+ array ($ this , '_doHeaders_callback_setext ' ), $ text );
2462
2462
2463
2463
# atx-style headers:
2464
2464
# # Header 1 {#header1}
@@ -2477,7 +2477,7 @@ protected function doHeaders($text) {
2477
2477
[ ]*
2478
2478
\n+
2479
2479
}xm ' ,
2480
- array (& $ this , '_doHeaders_callback_atx ' ), $ text );
2480
+ array ($ this , '_doHeaders_callback_atx ' ), $ text );
2481
2481
2482
2482
return $ text ;
2483
2483
}
@@ -2528,7 +2528,7 @@ protected function doTables($text) {
2528
2528
)
2529
2529
(?=\n|\Z) # Stop at final double newline.
2530
2530
}xm ' ,
2531
- array (& $ this , '_doTable_leadingPipe_callback ' ), $ text );
2531
+ array ($ this , '_doTable_leadingPipe_callback ' ), $ text );
2532
2532
2533
2533
#
2534
2534
# Find tables without leading pipe.
@@ -2554,7 +2554,7 @@ protected function doTables($text) {
2554
2554
)
2555
2555
(?=\n|\Z) # Stop at final double newline.
2556
2556
}xm ' ,
2557
- array (& $ this , '_DoTable_callback ' ), $ text );
2557
+ array ($ this , '_DoTable_callback ' ), $ text );
2558
2558
2559
2559
return $ text ;
2560
2560
}
@@ -2678,7 +2678,7 @@ protected function doDefLists($text) {
2678
2678
(?>\A\n?|(?<=\n\n))
2679
2679
' .$ whole_list_re .'
2680
2680
}mx ' ,
2681
- array (& $ this , '_doDefLists_callback ' ), $ text );
2681
+ array ($ this , '_doDefLists_callback ' ), $ text );
2682
2682
2683
2683
return $ text ;
2684
2684
}
@@ -2716,7 +2716,7 @@ protected function processDefListItems($list_str) {
2716
2716
(?=\n?[ ]{0,3}:[ ]) # lookahead for following line feed
2717
2717
# with a definition mark.
2718
2718
}xm ' ,
2719
- array (& $ this , '_processDefListItems_callback_dt ' ), $ list_str );
2719
+ array ($ this , '_processDefListItems_callback_dt ' ), $ list_str );
2720
2720
2721
2721
# Process actual definitions.
2722
2722
$ list_str = preg_replace_callback ('{
@@ -2733,7 +2733,7 @@ protected function processDefListItems($list_str) {
2733
2733
)
2734
2734
)
2735
2735
}xm ' ,
2736
- array (& $ this , '_processDefListItems_callback_dd ' ), $ list_str );
2736
+ array ($ this , '_processDefListItems_callback_dd ' ), $ list_str );
2737
2737
2738
2738
return $ list_str ;
2739
2739
}
@@ -2801,7 +2801,7 @@ protected function doFencedCodeBlocks($text) {
2801
2801
# Closing marker.
2802
2802
\1 [ ]* (?= \n )
2803
2803
}xm ' ,
2804
- array (& $ this , '_doFencedCodeBlocks_callback ' ), $ text );
2804
+ array ($ this , '_doFencedCodeBlocks_callback ' ), $ text );
2805
2805
2806
2806
return $ text ;
2807
2807
}
@@ -2811,7 +2811,7 @@ protected function _doFencedCodeBlocks_callback($matches) {
2811
2811
$ codeblock = $ matches [4 ];
2812
2812
$ codeblock = htmlspecialchars ($ codeblock , ENT_NOQUOTES );
2813
2813
$ codeblock = preg_replace_callback ('/^\n+/ ' ,
2814
- array (& $ this , '_doFencedCodeBlocks_newlines ' ), $ codeblock );
2814
+ array ($ this , '_doFencedCodeBlocks_newlines ' ), $ codeblock );
2815
2815
2816
2816
if ($ classname != "" ) {
2817
2817
if ($ classname {0 } == '. ' )
@@ -2914,7 +2914,7 @@ protected function stripFootnotes($text) {
2914
2914
)*
2915
2915
)
2916
2916
}xm ' ,
2917
- array (& $ this , '_stripFootnotes_callback ' ),
2917
+ array ($ this , '_stripFootnotes_callback ' ),
2918
2918
$ text );
2919
2919
return $ text ;
2920
2920
}
@@ -2942,7 +2942,7 @@ protected function appendFootnotes($text) {
2942
2942
# Append footnote list to text.
2943
2943
#
2944
2944
$ text = preg_replace_callback ('{F\x1Afn:(.*?)\x1A:} ' ,
2945
- array (& $ this , '_appendFootnotes_callback ' ), $ text );
2945
+ array ($ this , '_appendFootnotes_callback ' ), $ text );
2946
2946
2947
2947
if (!empty ($ this ->footnotes_ordered )) {
2948
2948
$ text .= "\n\n" ;
@@ -2974,7 +2974,7 @@ protected function appendFootnotes($text) {
2974
2974
$ footnote .= "\n" ; # Need to append newline before parsing.
2975
2975
$ footnote = $ this ->runBlockGamut ("$ footnote \n" );
2976
2976
$ footnote = preg_replace_callback ('{F\x1Afn:(.*?)\x1A:} ' ,
2977
- array (& $ this , '_appendFootnotes_callback ' ), $ footnote );
2977
+ array ($ this , '_appendFootnotes_callback ' ), $ footnote );
2978
2978
2979
2979
$ attr = str_replace ("%% " , ++$ num , $ attr );
2980
2980
$ note_id = $ this ->encodeAttribute ($ note_id );
@@ -3057,7 +3057,7 @@ protected function stripAbbreviations($text) {
3057
3057
^[ ]{0, ' .$ less_than_tab .'}\*\[(.+?)\][ ]?: # abbr_id = $1
3058
3058
(.*) # text = $2 (no blank lines allowed)
3059
3059
}xm ' ,
3060
- array (& $ this , '_stripAbbreviations_callback ' ),
3060
+ array ($ this , '_stripAbbreviations_callback ' ),
3061
3061
$ text );
3062
3062
return $ text ;
3063
3063
}
@@ -3084,7 +3084,7 @@ protected function doAbbreviations($text) {
3084
3084
'(?: ' .$ this ->abbr_word_re .') ' .
3085
3085
'(?![\w\x1A]) ' .
3086
3086
'} ' ,
3087
- array (& $ this , '_doAbbreviations_callback ' ), $ text );
3087
+ array ($ this , '_doAbbreviations_callback ' ), $ text );
3088
3088
}
3089
3089
return $ text ;
3090
3090
}
0 commit comments