Skip to content

Commit 63223cf

Browse files
authored
Merge pull request #815 from phpDocumentor/fix/plain-menu-items
[FIX] Do not use html elements in menu items
2 parents 37f8962 + d65fd02 commit 63223cf

File tree

2 files changed

+2
-2
lines changed
  • packages/guides/resources/template/html/body/menu
  • tests/Integration/tests/navigation/menu-relative/input/level-1-1

2 files changed

+2
-2
lines changed

packages/guides/resources/template/html/body/menu/menu-item.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<li class="toc-item {%- if node.isCurrent %} current{% endif -%} {%- if node.isInRootline %} active{% endif -%}"><a href="{{ url }}">{{ renderNode(node.value.value) }}</a>
1+
<li class="toc-item {%- if node.isCurrent %} current{% endif -%} {%- if node.isInRootline %} active{% endif -%}"><a href="{{ url }}">{{ node.value.toString }}</a>
22
{%- if node.children|length %}
33
<ul class="menu-level-{{ node.level }}">
44
{% for child in node.children -%}

tests/Integration/tests/navigation/menu-relative/input/level-1-1/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
=========
2-
Level 1-1
2+
Level ``1-1``
33
=========
44

55
Lorem Ipsum Dolor.

0 commit comments

Comments
 (0)