0byt3m1n1
Path:
C:
/
Program Files
/
R
/
R-4.2.2
/
library
/
rmarkdown
/
rmd
/
h
/
anchor-sections
/
[
Home
]
File: anchor-sections.js
document.addEventListener('DOMContentLoaded', function () { // If section divs is used, we need to put the anchor in the child header const headers = document.querySelectorAll("div.hasAnchor.section[class*='level'] > :first-child") headers.forEach(function (x) { // Add to the header node if (!x.classList.contains('hasAnchor')) x.classList.add('hasAnchor') // Remove from the section or div created by Pandoc x.parentElement.classList.remove('hasAnchor') }) })