0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-17 21:02:49 +00:00

Merge branch 'master' into fixInkFriendlySnippet-#3563

This commit is contained in:
Trevor Buckner
2024-08-01 00:48:14 -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;