diff --git a/src/app/services/rendering/toc.ts b/src/app/services/rendering/toc.ts index a48194e..a31c97b 100644 --- a/src/app/services/rendering/toc.ts +++ b/src/app/services/rendering/toc.ts @@ -190,9 +190,6 @@ export class TocRenderingService extends RenderingService implements ResizableOb let text = $(anchor).attr("title"); let parent = $(anchor).parent() as unknown as JQuery; let parentNodes: JQuery[] = parent.parents("ul>li") as unknown as JQuery[]; - let latest = parentNodes.length > 0 ? parentNodes[parentNodes.length - 1] : parent; - let header = $(latest).prevAll("li[data-is-header='true']").first(); - parentNodes.push(header); for (let i = 0; i < parentNodes.length; i++) { let parentText; let parentNode = $(parentNodes[i]);