mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 11:05:56 +02:00
BUGFIX Fixed anchor parsing in headlines (fixes #6342)
This commit is contained in:
parent
29d1bca8c8
commit
652f7c3898
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user