fix source forge bug 787780
authorAntoine Musso <hashar@users.mediawiki.org>
Tue, 16 Mar 2004 03:58:36 +0000 (03:58 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Tue, 16 Mar 2004 03:58:36 +0000 (03:58 +0000)
Allow = sign in headers. Ex:  = my text = crap = will render as <h1>my text = crap</h1>

includes/Parser.php

index 04cfc35..5e5a7d9 100644 (file)
@@ -427,7 +427,7 @@ class Parser
        {
                for ( $i = 6; $i >= 1; --$i ) {
                        $h = substr( "======", 0, $i );
-                       $text = preg_replace( "/^{$h}([^=]+){$h}(\\s|$)/m",
+                       $text = preg_replace( "/^{$h}(.+){$h}(\\s|$)/m",
                          "<h{$i}>\\1</h{$i}>\\2", $text );
                }
                return $text;