From 652f7c3898940dc0ef83f439a64d9f694a2bba3b Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 13 Jan 2011 07:20:55 +0000 Subject: [PATCH] BUGFIX Fixed anchor parsing in headlines (fixes #6342) --- code/DocumentationParser.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/code/DocumentationParser.php b/code/DocumentationParser.php index 12bbd2d..c1b143e 100644 --- a/code/DocumentationParser.php +++ b/code/DocumentationParser.php @@ -198,9 +198,7 @@ class DocumentationParser { * */ static function rewrite_heading_anchors($md, $page) { - $re = '/ - \#+(.*) - /x'; + $re = '/^\#+(.*)/m'; $md = preg_replace_callback($re, array('DocumentationParser', '_rewrite_heading_anchors_callback'), $md); return $md;