mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-08 20:23:39 +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 getTOC = ()=>{
|
||||||
const pageMap = [];
|
const pageMap = [];
|
||||||
const entries = [];
|
const entries = [];
|
||||||
@@ -57,7 +58,6 @@ const getTOC = ()=>{
|
|||||||
mapPages(iframeDocument, pageMap);
|
mapPages(iframeDocument, pageMap);
|
||||||
|
|
||||||
_.each(headings, (heading)=>{
|
_.each(headings, (heading)=>{
|
||||||
const pageAnchor = heading.closest('.page').id;
|
|
||||||
const onPage = parseInt(heading.closest('.page').id?.replace(/^p/, ''));
|
const onPage = parseInt(heading.closest('.page').id?.replace(/^p/, ''));
|
||||||
const ToCExclude = getComputedStyle(heading).getPropertyValue('--TOC');
|
const ToCExclude = getComputedStyle(heading).getPropertyValue('--TOC');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user