Fix deep link not working for H4 headings
This commit is contained in:
parent
6ff8850dc4
commit
12b273c010
@ -55,7 +55,7 @@ function initParallax() {
|
|||||||
|
|
||||||
(function (window, document) {
|
(function (window, document) {
|
||||||
var addAnchors = () => {
|
var addAnchors = () => {
|
||||||
var headings = document.querySelectorAll('.gh-content h1, .gh-content h2, .gh-content h3, gh-.content h4, .gh-content h5, .gh-content h6')
|
var headings = document.querySelectorAll('.gh-content h1, .gh-content h2, .gh-content h3, .gh-content h4, .gh-content h5, .gh-content h6')
|
||||||
headings.forEach((heading) => {
|
headings.forEach((heading) => {
|
||||||
heading.insertAdjacentHTML('beforeend', `
|
heading.insertAdjacentHTML('beforeend', `
|
||||||
<button class="anchor-link" aria-label="Copy link to this section">
|
<button class="anchor-link" aria-label="Copy link to this section">
|
||||||
|
Loading…
Reference in New Issue
Block a user