Emile Bangma
2024-03-10 6e0c10297095a918109a058762beb47efc384a21
fix(transclusion): prevent duplicate transclusion if multiple transclusions are present. (#982)

1 files modified
3 ■■■■ changed files
quartz/components/renderPage.tsx 3 ●●●● patch | view | raw | blame | history
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
            }
          }