So with Goldmark the standard now, opening links external links in a new tab is a bit more involved. But for my regular content I got this fixed thanks to the helpful posts here and here on the forum.
But how do I get the links that a shortcode runs through markdownify to also open in a new window?
Because that doesn’t invoke render-link.html so I can’t add external links that way. Anyone has an idea? Thanks!
I wasn’t super clear it seems. Sorry for that. I meant the links that text, which runs through the shortcode, should open in a new tab. My shortcodes simply have variations on this:
{{ .Inner | markdownify }}
So the shortcode itself doesn’t have <a> links, but they still happen inside the shortcode (if you know what I mean).
Having Goldmark process the shortcode is, since Hugo 0.55, not the proper way since {{< for content that should not be in the TOC and footnotes “is the better alternative” (according to the release notes).