Fix deep link not working for H4 headings

This commit is contained in:
Evan Wondrasek 2025-02-28 11:25:52 -08:00
parent 6ff8850dc4
commit 12b273c010

View File

@ -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">