mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Merge pull request #5536 from pawamoy/patch-6
Strip tags of ToC item's aria label
This commit is contained in:
commit
263a85dbf5
@ -6,7 +6,7 @@
|
|||||||
{{ toc_item.title }}
|
{{ toc_item.title }}
|
||||||
</a>
|
</a>
|
||||||
{% if toc_item.children %}
|
{% if toc_item.children %}
|
||||||
<nav class="md-nav" aria-label="{{ toc_item.title }}">
|
<nav class="md-nav" aria-label="{{ toc_item.title | striptags }}">
|
||||||
<ul class="md-nav__list">
|
<ul class="md-nav__list">
|
||||||
{% for toc_item in toc_item.children %}
|
{% for toc_item in toc_item.children %}
|
||||||
{% include "partials/toc-item.html" %}
|
{% include "partials/toc-item.html" %}
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
<!-- Table of contents list -->
|
<!-- Table of contents list -->
|
||||||
{% if toc_item.children %}
|
{% if toc_item.children %}
|
||||||
<nav class="md-nav" aria-label="{{ toc_item.title }}">
|
<nav class="md-nav" aria-label="{{ toc_item.title | striptags }}">
|
||||||
<ul class="md-nav__list">
|
<ul class="md-nav__list">
|
||||||
{% for toc_item in toc_item.children %}
|
{% for toc_item in toc_item.children %}
|
||||||
{% include "partials/toc-item.html" %}
|
{% include "partials/toc-item.html" %}
|
||||||
|
Loading…
Reference in New Issue
Block a user