Fix Table of Contents uppercasing
This commit is contained in:
Trevor Buckner authored and GitHub committed 2024-08-01 00:47:23 -04:00
commit 40777a3794
1 file changed
+1 -1
@@ -35,7 +35,7 @@ const getTOC = (pages)=>{
const ToCExclude = getComputedStyle(heading).getPropertyValue('--TOC'); const ToCExclude = getComputedStyle(heading).getPropertyValue('--TOC');
if(ToCExclude != 'exclude') { if(ToCExclude != 'exclude') {
recursiveAdd(heading.innerText.trim(), onPage, headerDepth.indexOf(heading.tagName), res); recursiveAdd(heading.textContent.trim(), onPage, headerDepth.indexOf(heading.tagName), res);
} }
}); });
return res; return res;