From 0d314db1f8d6438e6e721e1c37c65fe84f193acf Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Wed, 29 Nov 2023 18:50:47 +0000
Subject: [PATCH] fix(style): overflow on toc

---
 quartz/components/renderPage.tsx |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/quartz/components/renderPage.tsx b/quartz/components/renderPage.tsx
index 36b0646..5cb39d9 100644
--- a/quartz/components/renderPage.tsx
+++ b/quartz/components/renderPage.tsx
@@ -104,7 +104,7 @@
                 break
               }
 
-              if (startIdx) {
+              if (startIdx !== undefined) {
                 endIdx = i
               } else if (el.properties?.id === blockRef) {
                 startIdx = i
@@ -112,7 +112,7 @@
             }
           }
 
-          if (!startIdx) {
+          if (startIdx === undefined) {
             return
           }
 

--
Gitblit v1.10.0