changeset 1174 | def792dd9b1b |
parent 1156 | 417e66a664d0 |
child 1217 | feeb49aa6270 |
--- a/includes/wikiengine/parse_mediawiki.php Fri Dec 18 05:12:02 2009 -0500 +++ b/includes/wikiengine/parse_mediawiki.php Fri Dec 18 09:39:18 2009 -0500 @@ -21,7 +21,8 @@ 'externalnotext' => '#\[((?:https?|irc|ftp)://.+?)\]#', 'mailtonotext' => '#\[mailto:([^ \]]+?)\]#', 'mailtowithtext' => '#\[mailto:([^ \]]+?) (.+?)\]#', - 'hr' => '/^[-]{4,} *$/m' + 'hr' => '/^[-]{4,} *$/m', + 'code' => '/^<code>(?:\r?\n)?(.+?)(?:\r?\n)?<\/code>$/mis' ); private $blockquote_rand_id;