Skip to content

Commit

Permalink
fix(transclusion): prevent duplicate transclusion if multiple transcl…
Browse files Browse the repository at this point in the history
…usions are present. (jackyzha0#982)
  • Loading branch information
saberzero1 authored and qazxcdswe123 committed Apr 18, 2024
1 parent d8312f0 commit eb09218
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion quartz/components/renderPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,12 @@ export function renderPage(
// 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
}
}

Expand Down

0 comments on commit eb09218

Please sign in to comment.