mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-22 05:55:42 -05:00
When a page embeds two different sections from the same note (e.g., `![[Note#Section A]]` and `![[Note#Section B]]`), the second transclusion is incorrectly flagged as circular. This happens because the `visited` set in `renderTranscludes` tracks targets by slug alone, so the second embed of the same file is treated as a cycle even though it references a different section. Include the block/section reference (`dataBlock`) in the visited key so that different sections of the same page are treated as distinct transclusion targets. Full-page transclusions (no section reference) still use the slug alone, preserving circular reference detection for actual cycles. |
||
|---|---|---|
| .. | ||
| cli | ||
| components | ||
| i18n | ||
| plugins | ||
| processors | ||
| static | ||
| styles | ||
| util | ||
| bootstrap-cli.mjs | ||
| bootstrap-worker.mjs | ||
| build.ts | ||
| cfg.ts | ||
| worker.ts | ||