BUGFIX Fixed anchor parsing in headlines (fixes #6342)

This commit is contained in:
Ingo Schommer 2011-01-13 07:20:55 +00:00
parent 29d1bca8c8
commit 652f7c3898

View File

@ -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;