includes/wikiengine/parse_mediawiki.php
changeset 1306 e00489a30c72
parent 1231 4797a4a88533
child 1363 f1ed3e9298ae
equal deleted inserted replaced
1305:ba8a648baebc 1306:e00489a30c72
    15 {
    15 {
    16 	public $rules = array(
    16 	public $rules = array(
    17 		'bold'   => "/'''(.+?)'''/",
    17 		'bold'   => "/'''(.+?)'''/",
    18 		'italic' => "/''(.+?)''/",
    18 		'italic' => "/''(.+?)''/",
    19 		'underline' => '/__(.+?)__/',
    19 		'underline' => '/__(.+?)__/',
    20 		'externalwithtext' => '#\[((?:https?|irc|ftp)://.+?) (.+?)\]#',
    20 		'externalwithtext' => '#\[((?:https?|irc|ftp)://[^ ]+?) (.+?)\]#',
    21 		'externalnotext' => '#\[((?:https?|irc|ftp)://.+?)\]#',
    21 		'externalnotext' => '#\[((?:https?|irc|ftp)://[^ ]+?)\]#',
    22 		'mailtonotext' => '#\[mailto:([^ \]]+?)\]#',
    22 		'mailtonotext' => '#\[mailto:([^ \]]+?)\]#',
    23 		'mailtowithtext' => '#\[mailto:([^ \]]+?) (.+?)\]#',
    23 		'mailtowithtext' => '#\[mailto:([^ \]]+?) (.+?)\]#',
    24 		'hr' => '/^[-]{4,} *$/m',
    24 		'hr' => '/^[-]{4,} *$/m',
    25 		'code' => '/^(?:<code>(?:\r?\n)?|<pre>)(.+?)(?:<\/pre>|(?:\r?\n)?<\/code>)$/mis'
    25 		'code' => '/^(?:<code>(?:\r?\n)?|<pre>)(.+?)(?:<\/pre>|(?:\r?\n)?<\/code>)$/mis'
    26 	);
    26 	);