1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-02 16:07:26 -04:00

Merge pull request #376 from MikesCoolOrg/master

Improve accessibility by adding label to Anchor links.
This commit is contained in:
Patrick Marsceill 2020-07-06 11:22:04 -04:00 committed by GitHub
commit a8f8f8445a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,7 @@
{% capture anchor %}{% endcapture %}
{% if html_id and headerLevel >= minHeader and headerLevel <= maxHeader %}
{% capture anchor %}href="#{{ html_id}}"{% endcapture %}
{% capture anchor %}href="#{{ html_id}}" aria-labelledby="{{ html_id}}"{% endcapture %}
{% if include.anchorClass %}
{% capture anchor %}{{ anchor }} class="{{ include.anchorClass }}"{% endcapture %}