0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-17 10:12:40 +00:00
Fix Table of Contents uppercasing
This commit is contained in:
Trevor Buckner
2024-08-01 00:47:23 -04:00
committed by GitHub

View File

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