@alnc can you please share a simple repo reproducing this issue, because it’s working fine for us. Are you sure you’ve use the render-link.html file correctly?
Just to clarify, it should exist at: layouts/_default/_markup/render-link.html.
Yes render-link.html is in the right directory.
I made a theme by myself, very basic for now.
And I just find out that it works with tables, you are right, my mistake…
It helped me to find that the problem is a shortcode.
On the website I had to put one table after the other without any text in between. So I made a shortcode to wrap each one in order to make it work and get control of the space between tables.
Ahh, I can reproduce this. You’re right. It doesn’t work with this setup. I don’t have a reason why, but, you’re probably right. It might be the markdownify function. Maybe someone else can confirm?
I might have a workaround though. In your config.toml, you can add this:
[markup.goldmark.renderer]
unsafe = true
and then, in your markdown file itself, you can use the table like:
This way, you won’t need the shortcode and the links work fine.
EDIT:
Untested, but, might work. If you don’t want to enable unsafe Goldmark, you can create a link shortcode and use it within your wraptable shortcode. From what I know, nesting shortcodes is possible, so, that should work.
Thank you for your time and your help.
I will try the first solution, and I hope there will be no inconvenient on the whole site later.
If I understand your edit, the last one should work but might cause troubles on where to edit the file. I would prefer it stays in the content section and not have to write inside a shortcode section.
If anyone as a better solution, to avoid goldmark.renderer and a better way to write my wraptable shortcode…
Ha yes sorry, I understand what you meant.
I already planned to do this with a link shortcode in fact, but still a trick and not resolving the issue clearly. Many thanks.
Better option, don’t do it. Users who want to open a link in a new tab will do, those that don’t wont. Good UX starts with not disabling a users browser features…