Skip to content

fix: Add embed prefix for Apple Notes attachments and scans#516

Open
heyalchang wants to merge 1 commit intoobsidianmd:masterfrom
heyalchang:fix/apple-notes-embed-prefix
Open

fix: Add embed prefix for Apple Notes attachments and scans#516
heyalchang wants to merge 1 commit intoobsidianmd:masterfrom
heyalchang:fix/apple-notes-embed-prefix

Conversation

@heyalchang
Copy link
Copy Markdown

@heyalchang heyalchang commented Mar 12, 2026

Summary

  • Attachments imported from Apple Notes render as text links instead of inline embeds because the ! prefix is missing from the generated markdown link
  • This adds the ! prefix in both convert-note.ts (attachments) and convert-scan.ts (scans/drawings)
  • The third generateMarkdownLink call in getInternalLink() is intentionally left unchanged — it produces note-to-note links ([[note]]), not embeds

This matches Apple Notes' own behavior where all attachments are rendered inline.

Test plan

  • Import an Apple Notes database containing image attachments and scanned documents
  • Verify that images render inline in the resulting markdown files rather than appearing as [[filename.jpg]] text links
  • Verify that internal note links (applenotes://...) still render as [[note]] links, not embeds

Addresses #471 (item 3: attachments not embedded inline)

@heyalchang heyalchang force-pushed the fix/apple-notes-embed-prefix branch from 461fb76 to 03fcb5a Compare March 12, 2026 05:21
generateMarkdownLink() produces a link, but attachments and scans need
the ! embed prefix to render inline. Without it, images and PDFs appear
as links instead of inline embeds.

The third generateMarkdownLink call in getInternalLink() is left
unchanged — it produces note-to-note links, not embeds.

Addresses obsidianmd#471
@heyalchang heyalchang force-pushed the fix/apple-notes-embed-prefix branch from 03fcb5a to 5937e54 Compare March 12, 2026 05:35
@mirnovov
Copy link
Copy Markdown
Contributor

Note this issue is due to a breaking change in Obsidian 1.10.0.

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.

2 participants