Images inserted in the markdown editor should be wrapped in an anchor tag leading to the original file #858

Closed
opened 2026-02-04 22:36:10 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @thomasjsn on GitHub (Oct 12, 2018).

When inserting an image in the WYSIWYG editor a link to the original image file is added, it would be useful if the markdown editor did the same.

I'm just starting to migrate my content to BookStack, this feature would save me a lot of manual editing and copying and pasting URLs.

I've looked at the source; mind if I have a crack at implementing it? Anything special? Should a link be added even if no larger version of the image exists?

Originally created by @thomasjsn on GitHub (Oct 12, 2018). When inserting an image in the WYSIWYG editor a link to the original image file is added, it would be useful if the markdown editor did the same. I'm just starting to migrate my content to BookStack, this feature would save me a lot of manual editing and copying and pasting URLs. I've looked at the source; mind if I have a crack at implementing it? Anything special? Should a link be added even if no larger version of the image exists?
OVERLORD added the 🛠️ Enhancement> Markdown Editor labels 2026-02-04 22:36:10 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Oct 13, 2018):

Hi @thomasjsn, Thanks for this request.
I've updated the title a little because I originally thought this was in reference to img elem URL.

Yeah, Absolutely feel free to take a crack at this.
I think it should be kept simple and always add a link. Can be useful in the event the image size is simple shown smaller via styles, Clicking it will lead to the original full image for viewing.

@ssddanbrown commented on GitHub (Oct 13, 2018): Hi @thomasjsn, Thanks for this request. I've updated the title a little because I originally thought this was in reference to img elem URL. Yeah, Absolutely feel free to take a crack at this. I think it should be kept simple and always add a link. Can be useful in the event the image size is simple shown smaller via styles, Clicking it will lead to the original full image for viewing.
Author
Owner

@ssddanbrown commented on GitHub (Nov 10, 2018):

Now merged, To be in next minor release.

@ssddanbrown commented on GitHub (Nov 10, 2018): Now merged, To be in next minor release.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#858