Skip to content

Commit d65fd02

Browse files
committed
Do not use html elements in menu items
Menu items should be plain text, do not render the nodes of the title. Just get the plaintext string.
1 parent 37f8962 commit d65fd02

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)