Skip to content

release: 0.4.8#62

Merged
rogerdigital merged 2 commits into
mainfrom
fix/attachment-collector-cross-file-dedup
Jun 25, 2026
Merged

release: 0.4.8#62
rogerdigital merged 2 commits into
mainfrom
fix/attachment-collector-cross-file-dedup

Conversation

@rogerdigital

Copy link
Copy Markdown
Owner

Fixes

PDF export

Attachment handling

  • Assets folder location: when exporting a folder as Markdown or HTML, the assets folder now lands under the target folder (matching PDF/Word), instead of appearing a second time at the export root. (fix: place Markdown/HTML attachment assets under target folder #60)
  • Cross-file deduplication: attachments sharing a name across different notes are now correctly deduplicated across the whole export. The collector previously reset its state per file. (release: 0.4.8 #62)

Content consistency across formats


Full changelog: 0.4.7...0.4.8

AttachmentCollector previously created a fresh instance per file inside
the export loop, so attachments sharing a name across different notes
were not deduplicated — each file's collect() started with empty state.

Hoist knownAttachments and usedNames to instance fields and route all
attachment insertion through addAttachment(), which checks both the
per-file 'seen' set and the cross-file 'knownAttachments' cache. The
collector is now instantiated once per export (in ExportRunner.run),
so uniqueName and the known-attachment map persist across all files.
@rogerdigital rogerdigital merged commit a71a8d7 into main Jun 25, 2026
1 check passed
@rogerdigital rogerdigital deleted the fix/attachment-collector-cross-file-dedup branch June 25, 2026 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant