mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 09:05:56 +00: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) {
|
static function rewrite_heading_anchors($md, $page) {
|
||||||
$re = '/
|
$re = '/^\#+(.*)/m';
|
||||||
\#+(.*)
|
|
||||||
/x';
|
|
||||||
$md = preg_replace_callback($re, array('DocumentationParser', '_rewrite_heading_anchors_callback'), $md);
|
$md = preg_replace_callback($re, array('DocumentationParser', '_rewrite_heading_anchors_callback'), $md);
|
||||||
|
|
||||||
return $md;
|
return $md;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user