support anchor links for inline documentation (#482)
This commit is contained in:
@@ -60,6 +60,8 @@ class HelpController extends AbstractController
|
||||
|
||||
$content = file_get_contents($chapterFile);
|
||||
|
||||
$content = preg_replace('/\[(.+)\]\(([\w\-\/]+)(\.md)(\#[\w\-]+){0,1}\)/i', '[$1]($2$4)', $content);
|
||||
|
||||
return $this->render('help/index.html.twig', [
|
||||
'breadcrumb' => $breadcrumb,
|
||||
'chapter' => $chapter,
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
{% block main %}
|
||||
|
||||
{% set replacer = {
|
||||
'.md"': '"',
|
||||
'<table>': '<table class="table">',
|
||||
'href="../../': 'target="_blank" href="'~github~'blob/master/',
|
||||
('href="' ~ github): 'target="_blank" href="'~github
|
||||
|
||||
Reference in New Issue
Block a user