Image previews on Github with Obsidian Git Plugin

What I’m trying to do

I am trying to sync my vault to Github using the Obsidian Git plugin, and would like the same image previews to show up on Github as they do in Obsidian. Is there any way to have a preview work on both Github and Obsidian?

Things I have tried

I have managed to get the links formatted correctly to address to the right image file by converting links to markdown links. Appending “?raw=true” to the end of the link gives a preview on Github but Obsidian doesn’t recognize this and treats it as a new file that hasn’t been created.