From 67f3614f3d58d8c27e9dbf6ad2201493b1a627ca Mon Sep 17 00:00:00 2001
From: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 13 May 2024 02:05:27 +0000
Subject: [PATCH] chore(deps-dev): bump tsx from 4.7.1 to 4.9.3 (#1120)

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

diff --git a/quartz/components/renderPage.tsx b/quartz/components/renderPage.tsx
index 0c18544..251a53f 100644
--- a/quartz/components/renderPage.tsx
+++ b/quartz/components/renderPage.tsx
@@ -118,11 +118,12 @@
               // skip until we find the blockref that matches
               if (el.properties?.id === blockRef) {
                 startIdx = i
-                startDepth = Number(el.tagName.substring(1))
+                startDepth = depth
               }
             } else if (depth <= startDepth) {
               // looking for new header that is same level or higher
               endIdx = i
+              break
             }
           }
 

--
Gitblit v1.10.0