Markdown - fixed bug in local anchor links
This commit is contained in:
parent
9a5f9829c1
commit
990cc45a26
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ class Markdown extends BaseObject
|
|||
$MarkdownParser->hard_wrap = $hardwrap;
|
||||
$MarkdownParser->code_class_prefix = 'language-';
|
||||
$html = $MarkdownParser->transform($text);
|
||||
$html = str_replace('<a href="#', '<a href="' . ltrim($_SERVER['REQUEST_URI'], '/') . '#', $html);
|
||||
|
||||
self::getApp()->saveTimestamp($stamp1, "parser");
|
||||
|
||||
|
|
Loading…
Reference in a new issue