From b5fec6c87f2060884425607c0c4de5eededbb30f Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Fri, 01 Dec 2023 17:00:47 +0000
Subject: [PATCH] feat: allow popovers on intrapage links (closes #243)

---
 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