From 2775d446d8daa136706d81761d3a2bf50b761e5c Mon Sep 17 00:00:00 2001 From: DrMint Date: Fri, 27 May 2022 13:08:08 +0200 Subject: [PATCH] Fixed bug with TOC in case the header tree is incorrect --- src/components/Markdown/TOC.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Markdown/TOC.tsx b/src/components/Markdown/TOC.tsx index fa64de2..2da7226 100644 --- a/src/components/Markdown/TOC.tsx +++ b/src/components/Markdown/TOC.tsx @@ -101,7 +101,7 @@ export function getTocFromMarkdawn(text: string, title?: string): TOCInterface { h4 = -1; h5 = -1; scenebreak = 0; - } else if (line.startsWith("