Skip to content

Commit 3de156c

Browse files
Specify where anchor link is added
1 parent 9d0ba10 commit 3de156c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/scripts/heading-anchors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Heading anchors
22

3-
This script is part of `main.js`/`main.min.js`. To help linking to specific parts of pages, this script automatically creates and appends a visible anchor link to any H2-H6 heading within the `<main>` element, with the following exclusions:
3+
This script is part of `main.js`/`main.min.js`. To help linking to specific parts of pages, this script automatically creates and appends a visible anchor link to the end of any H2-H6 heading within the `<main>` element, with the following exclusions:
44

55
- where the heading is a child of a `<nav>` element
66
- where the heading carries the attribute `data-anchor="no"`

0 commit comments

Comments
 (0)