type arrays for class and subclass
This commit is contained in:
parent
d6498ec366
commit
7398fd13af
3 changed files with 8 additions and 7 deletions
|
|
@ -1248,7 +1248,7 @@ class Markdown implements MarkdownInterface {
|
||||||
* Define the emphasis operators with their regex matches
|
* Define the emphasis operators with their regex matches
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $em_relist = array(
|
protected array $em_relist = array(
|
||||||
'' => '(?:(?<!\*)\*(?!\*)|(?<!_)_(?!_))(?![\.,:;]?\s)',
|
'' => '(?:(?<!\*)\*(?!\*)|(?<!_)_(?!_))(?![\.,:;]?\s)',
|
||||||
'*' => '(?<![\s*])\*(?!\*)',
|
'*' => '(?<![\s*])\*(?!\*)',
|
||||||
'_' => '(?<![\s_])_(?!_)',
|
'_' => '(?<![\s_])_(?!_)',
|
||||||
|
|
@ -1258,7 +1258,7 @@ class Markdown implements MarkdownInterface {
|
||||||
* Define the strong operators with their regex matches
|
* Define the strong operators with their regex matches
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $strong_relist = array(
|
protected array $strong_relist = array(
|
||||||
'' => '(?:(?<!\*)\*\*(?!\*)|(?<!_)__(?!_))(?![\.,:;]?\s)',
|
'' => '(?:(?<!\*)\*\*(?!\*)|(?<!_)__(?!_))(?![\.,:;]?\s)',
|
||||||
'**' => '(?<![\s*])\*\*(?!\*)',
|
'**' => '(?<![\s*])\*\*(?!\*)',
|
||||||
'__' => '(?<![\s_])__(?!_)',
|
'__' => '(?<![\s_])__(?!_)',
|
||||||
|
|
@ -1268,7 +1268,7 @@ class Markdown implements MarkdownInterface {
|
||||||
* Define the emphasis + strong operators with their regex matches
|
* Define the emphasis + strong operators with their regex matches
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $em_strong_relist = array(
|
protected array $em_strong_relist = array(
|
||||||
'' => '(?:(?<!\*)\*\*\*(?!\*)|(?<!_)___(?!_))(?![\.,:;]?\s)',
|
'' => '(?:(?<!\*)\*\*\*(?!\*)|(?<!_)___(?!_))(?![\.,:;]?\s)',
|
||||||
'***' => '(?<![\s*])\*\*\*(?!\*)',
|
'***' => '(?<![\s*])\*\*\*(?!\*)',
|
||||||
'___' => '(?<![\s_])___(?!_)',
|
'___' => '(?<![\s_])___(?!_)',
|
||||||
|
|
|
||||||
|
|
@ -1549,17 +1549,17 @@ class MarkdownExtra extends \Michelf\Markdown {
|
||||||
* work in the middle of a word.
|
* work in the middle of a word.
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $em_relist = array(
|
protected array $em_relist = array(
|
||||||
'' => '(?:(?<!\*)\*(?!\*)|(?<![a-zA-Z0-9_])_(?!_))(?![\.,:;]?\s)',
|
'' => '(?:(?<!\*)\*(?!\*)|(?<![a-zA-Z0-9_])_(?!_))(?![\.,:;]?\s)',
|
||||||
'*' => '(?<![\s*])\*(?!\*)',
|
'*' => '(?<![\s*])\*(?!\*)',
|
||||||
'_' => '(?<![\s_])_(?![a-zA-Z0-9_])',
|
'_' => '(?<![\s_])_(?![a-zA-Z0-9_])',
|
||||||
);
|
);
|
||||||
protected $strong_relist = array(
|
protected array $strong_relist = array(
|
||||||
'' => '(?:(?<!\*)\*\*(?!\*)|(?<![a-zA-Z0-9_])__(?!_))(?![\.,:;]?\s)',
|
'' => '(?:(?<!\*)\*\*(?!\*)|(?<![a-zA-Z0-9_])__(?!_))(?![\.,:;]?\s)',
|
||||||
'**' => '(?<![\s*])\*\*(?!\*)',
|
'**' => '(?<![\s*])\*\*(?!\*)',
|
||||||
'__' => '(?<![\s_])__(?![a-zA-Z0-9_])',
|
'__' => '(?<![\s_])__(?![a-zA-Z0-9_])',
|
||||||
);
|
);
|
||||||
protected $em_strong_relist = array(
|
protected array $em_strong_relist = array(
|
||||||
'' => '(?:(?<!\*)\*\*\*(?!\*)|(?<![a-zA-Z0-9_])___(?!_))(?![\.,:;]?\s)',
|
'' => '(?:(?<!\*)\*\*\*(?!\*)|(?<![a-zA-Z0-9_])___(?!_))(?![\.,:;]?\s)',
|
||||||
'***' => '(?<![\s*])\*\*\*(?!\*)',
|
'***' => '(?<![\s*])\*\*\*(?!\*)',
|
||||||
'___' => '(?<![\s_])___(?![a-zA-Z0-9_])',
|
'___' => '(?<![\s_])___(?![a-zA-Z0-9_])',
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@
|
||||||
"psr-4": { "Michelf\\": "Michelf/" }
|
"psr-4": { "Michelf\\": "Michelf/" }
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": ">= 9.5"
|
"phpunit/phpunit": ">= 9.5",
|
||||||
|
"rector/rector": "^0.11.60"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue