This add-on solves the problem where embedded media gallery images in a post when clicked take you to media gallery.
(Example of media gallery tag)
(Example of attach tag)
Question and Answers:
Q: Are media gallery attachments reused?
A: No. Each post attachment is saved separately which ensures that if the media gallery attachment is deleted the attachment in the post remains.