Emile Bangma
2024-03-31 5ec61468d5e787b3c8ae32a2b4ef1595cf0bc3ee
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
            }
          }