HUGO

External link in a new tab with Goldmark and images

I have upgraded to Hugo v0.64.1 and tested the new Goldmark renderer. I used @PrasadPen tips to open external link in a new tab and noticed that some images failed to render.

Looking at my site content I found several Markdown link containing images [![my image](/local/image)](https://example.com), that are now rendered as text <img src="/local/image" alt=“my image”>. After reverting @PrasadPen’s tips, the images are rendered correctly, but I lost the ability to open external link in a new tab.

Do you have any tips on how to work with image and link in Goldmark? I looked at goldmark.linkContext but there seem to be no method to work with HTML.