mirror of
https://github.com/quartz-community/utils.git
synced 2026-07-22 02:50:27 +00:00
The 'shortest' strategy in transformLink() only matched by filename (last segment), causing wiki-links like [[Species/Elf/Wood]] to fail resolution when the target lived under a deeper path (e.g. Compendium/Species/Elf/Wood). Add suffix-based matching for multi-segment partial paths and handle the /index variant for folder targets whose suffix gets stripped by transformInternalLink(). |
||
|---|---|---|
| .. | ||
| path.test.ts | ||