diff --git a/assets/styles/app.css b/assets/styles/app.css index 1bf27b8..34af3f4 100644 --- a/assets/styles/app.css +++ b/assets/styles/app.css @@ -24,13 +24,22 @@ hgroup > h1 > a { header .theme-icon { text-decoration: none; font-size: 150%; - cursor: pointer; } footer div.github { text-align: right; } +/** See h6 */ +footer span.versions { + display: block; + color: var(--pico-h6-color); + font-size: 1rem; + font-weight: 700; + line-height: 1.25; + margin-bottom: var(--pico-typography-spacing-vertical); +} + /* Symfony —————————————————————————————————————————————————————————————————— */ /** diff --git a/src/Twig/Extension/MarkdownExtension.php b/src/Twig/Extension/MarkdownExtension.php index 811a9ae..8554854 100644 --- a/src/Twig/Extension/MarkdownExtension.php +++ b/src/Twig/Extension/MarkdownExtension.php @@ -35,9 +35,9 @@ public function addHeadersAnchors(string $html): string $dom = new \DOMDocument(); $dom->loadHTML(mb_encode_numericentity($html, [0x80, 0x10FFFF, 0, ~0], 'UTF-8'), \LIBXML_HTML_NOIMPLIED | \LIBXML_HTML_NODEFDTD); - /** @var \DOMNodeList<\DOMNode> $tags */ - $tags = (new \DOMXPath($dom))->query('//h1 | //h2 | //h3 | //h4 | //h5 | //h6'); // Allow to have the same "buggy" anchors as GitHub + /** @var \DOMNodeList<\DOMNode> $tags */ + $tags = (new \DOMXPath($dom))->query('//h2 | //h3'); foreach ($tags as $headerTag) { $slug = $this->stringHelper->slugify($headerTag->textContent); /** @var \DOMElement $headerTag */ diff --git a/templates/base.html.twig b/templates/base.html.twig index 65e79f0..1e54a97 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -59,8 +59,8 @@