mirror of
https://github.com/onlyworlds/obsidian-plugin.git
synced 2026-07-22 11:00:31 +00:00
Link fields rendered as raw UUIDs after a real download: writeElement resolved id->name via metadataCache, which is cold for freshly-written sibling notes mid-bulk-write, so nearly every link stayed a bare id. Fix (restores the old linkifyContent/buildVaultNameIndex approach for the frontmatter format): - WriteElementOpts gains an idToName map; when present writeElement uses it instead of the cache-scanning buildIdToNameResolver (absent = back-compat). - DownloadWorldCommand builds ONE complete id->basename map before the write loop: seeded from the in-memory payload (freshest names) with a raw-disk fallback (parseRawFrontmatterScalars, NO metadataCache) for ids outside an incremental pull's changed set. Names pass through sanitizeFileName so the written [[Name]] resolves by filename. Unknown id -> raw id (never dropped). - parseRawFrontmatterScalars added to element-transform (pure, dep-free) + unit tests; plus a download-style injected-map render test. 59/59 green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| CopyWorldCommand.ts | ||
| CreateCategoryFoldersCommand.ts | ||
| CreateCoreFilesCommand.ts | ||
| CreateElementCommand.ts | ||
| CreateHandlebarsCommand.ts | ||
| CreateReadmeCommand.ts | ||
| CreateSettingsCommand.ts | ||
| CreateTemplatesCommand.ts | ||
| CreateWorldCommand.ts | ||
| DeleteElementCommand.ts | ||
| DownloadWorldCommand.ts | ||
| export-plan.ts | ||
| ExportFolderCommand.ts | ||
| ExportWorldCommand.ts | ||
| ImportFolderCommand.ts | ||
| MigrateWorldCommand.ts | ||
| PasteWorldCommand.ts | ||
| RenameWorldCommand.ts | ||
| SaveElementCommand.ts | ||
| UpdateCategoryCountsCommand.ts | ||
| ValidateWorldCommand.ts | ||