mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-26 00:52:48 +00:00
Update tableOfContents.gen.js
This commit is contained in:
@@ -45,6 +45,7 @@ const recursiveAdd = (title, page, actualPage, targetDepth, child, curDepth=0)=>
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
const getTOC = ()=>{
|
||||
const pageMap = [];
|
||||
const entries = [];
|
||||
@@ -57,7 +58,6 @@ const getTOC = ()=>{
|
||||
mapPages(iframeDocument, pageMap);
|
||||
|
||||
_.each(headings, (heading)=>{
|
||||
const pageAnchor = heading.closest('.page').id;
|
||||
const onPage = parseInt(heading.closest('.page').id?.replace(/^p/, ''));
|
||||
const ToCExclude = getComputedStyle(heading).getPropertyValue('--TOC');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user