I have some markdown files containing images in ![[image_links]] a.k.a wiki-link format. I want to convert them into  a.k.a standard markdown image format. I am using python3 for the conversion.
I've used WikiLinks extension, but it doesn't give any satisfactory result. How can I convert them using python 3.x?
I have used regex to find the string as follows:
import re
txt = "The ![[12345]] ![[12345.jpg]] ![[Pasted image 20210519063449.png]] ha ![[Test.jpeg]] haha quick brown 123.45 fox [[jumps]]"
pattern = re.compile(r'!\[\[\D*\d*\.\D{3,4}]]')
print(pattern.findall(txt))
But how to replace them using regex or any other method?