Steps to reproduce
- Create a note called
Note.md
- Write
![[Note]]
inside the new note - Open the command palette
- Select “Export to PDF”
- Use the default options
If you have any cycles this bug occurs, eg via mutual recursion.
Expected result
This is a tricky one. I think the best behaviour is that whenever a note is embedded inside itself (any number of layers deep), it should replace the embedding with a link. This is what zoni/obsidian-export does.
Actual result
Result: Obsidian freezes, using 100% of a single core with rapidly increasing memory usage (presumably as it’s constructing an infinitely long PDF).
Environment
- Operating system: Arch Linux
- Obsidian version: v0.11.13