otterwiki icon indicating copy to clipboard operation
otterwiki copied to clipboard

Opening Links in a New Tab

Open kyle-mckay opened this issue 9 months ago • 1 comments

Part of what I’m using Otterwiki for, is to create wiki pages with direct links to service providers and other external resources. However, I’d like the ability to open these links in a new tab instead of the current window.

According to resources like GeekforGeeks, some Markdown editors and applications support the target="_blank" attribute using syntax like this:

Here is an [example](https://example.com){:target="_blank"} link

Currently, in Otterwiki, this syntax is not supported. When I try to use it, the {:target="_blank"} part is rendered as plain text instead of being applied to the link.

Image

Aside from HTML inside of markdown, does Otterwiki support the ability to open links in a new tab, either through the target="_blank" attribute or a similar mechanism? If not, this could be a potential enhancement that would greatly improve the usability of external links in wiki pages (in my own opinion).

kyle-mckay avatar Mar 10 '25 15:03 kyle-mckay

Hey @kyle-mckay, thanks for opening up this issue. Currently this is not supported.

I never read anywhere of a markdown extension that is mentioned in the GeekforGeeks article. There is also not mentioned which markdown parsers support this feature, I guess at least their very own parser? Some stackoverflow posting mention that kramdown supports it, but I can not find it in their docs: https://kramdown.gettalong.org/syntax.html

In general I have the impression that target="_blank" have gone out of fashion, since most browsers support "Opening in a new tab" via the middle mouse button .. nevertheless I will check how different markdown flavors support this and will think about adding this feature!

redimp avatar Mar 11 '25 00:03 redimp