Loading
Improve image attachment in markdown editor
What does this MR do and why?
This MR improves image attachment in markdown editor:
- Always applies image dimensions
- Respects
@2xpostfix for retina images - Uses the same logic for both pasting and dragging images into textarea
Screenshots or screen recordings
| Before | After |
|---|---|
| CleanShot_2025-10-29_at_13.28.47 | CleanShot_2025-10-29_at_13.26.10 |
How to set up and validate locally
- Open any issue
- Attach a non-retina image by dragging the image into textarea
- Observe image dimensions in the markdown
- Attach a retina image (captured by macOS internal capture tool) by dragging the image into textarea
- Observe retina image dimensions
- Attach a retina image with
@2xpostfix in the filename by dragging the image into textarea - Observe retina image dimensions
- Repeat the steps but now paste the images instead of dragging