Correct way to add image with link?

This link below works fine:

<a href="">![Buy Button](/assets/img/buttons/flipkart.png)</a>

How to do it in markdown?

![Buy Button](/assets/img/buttons/flipkart.png)("")

Tried this didn’t work!

maybe like:


thanks it did work…but i want the link to open in a new tab

I googled markdown link with target blank and found:

one of the answers says to try:

worked for me.

Duplicate of this question, also by OP.

I suggested the same Kramdown answer there.