# HG changeset patch # User Dan # Date 1251306317 14400 # Node ID 01315acbc22b749237114fb43da2f6b939e70d29 # Parent 0e46639fd40862e050eb418a8606943683e51a1d Wikitext: added horizontal rule support diff -r 0e46639fd408 -r 01315acbc22b includes/wikiengine/parse_mediawiki.php --- a/includes/wikiengine/parse_mediawiki.php Wed Aug 26 13:04:55 2009 -0400 +++ b/includes/wikiengine/parse_mediawiki.php Wed Aug 26 13:05:17 2009 -0400 @@ -18,7 +18,8 @@ 'italic' => "/''(.+?)''/", 'underline' => '/__(.+?)__/', 'externalwithtext' => '#\[((?:https?|irc|ftp)://.+?) (.+?)\]#', - 'externalnotext' => '#\[((?:https?|irc|ftp)://.+?)\]#' + 'externalnotext' => '#\[((?:https?|irc|ftp)://.+?)\]#', + 'hr' => '/^[-]{4,} *$/m' ); private $blockquote_rand_id; diff -r 0e46639fd408 -r 01315acbc22b includes/wikiengine/render_xhtml.php --- a/includes/wikiengine/render_xhtml.php Wed Aug 26 13:04:55 2009 -0400 +++ b/includes/wikiengine/render_xhtml.php Wed Aug 26 13:05:17 2009 -0400 @@ -20,7 +20,8 @@ 'italic' => '\\1', 'underline' => '\\1', 'externalwithtext' => '\\2', - 'externalnotext' => '\\1' + 'externalnotext' => '\\1', + 'hr' => '