support anchor links for inline documentation (#482)

This commit is contained in:
Lukas
2019-01-17 23:30:02 +01:00
committed by Kevin Papst
parent 5d5b971f57
commit b5c4084452
2 changed files with 2 additions and 1 deletions

View File

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

View File

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