Context
From Copilot review on PR #1 (comment on packages/myst-to-ipynb/src/attachments.ts:91).
Problem
embedImagesAsAttachments drops the optional image title when rewriting  to . The regex replacement always omits the title portion.
Impact
Very low — image titles ("title" in ) are rarely used in practice and MyST source files don't commonly produce them. However, if titles are present in the serialized markdown, they should ideally be preserved for correctness.
Proposed Fix
Update the regex in embedImagesAsAttachments() to capture and preserve the optional title string in the rewritten attachment reference:

Context
From Copilot review on PR #1 (comment on
packages/myst-to-ipynb/src/attachments.ts:91).Problem
embedImagesAsAttachmentsdrops the optional image title when rewritingto. The regex replacement always omits the title portion.Impact
Very low — image titles (
"title"in) are rarely used in practice and MyST source files don't commonly produce them. However, if titles are present in the serialized markdown, they should ideally be preserved for correctness.Proposed Fix
Update the regex in
embedImagesAsAttachments()to capture and preserve the optional title string in the rewritten attachment reference: