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).
Iâm a bit confused: if all you are doing is running âmarkdownifyâ, why not remove the shortcodes and let Goldmark and link templates do their thing?
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).