forked from jupyter-book/mystmd
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
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:

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels