Ideally, marks would support full node views, which would make this really easy. Unfortunately, they don’t. So the best way to do this at the moment is probably to have a plugin that looks for links that need to be modified, and adds decorations that hide the link content and put a thumbnail or other widget in its place.