Allow External links to Have customized targets

If you use a hyperlink in your notes such as:

<a target="_self" href="url">Name<a>

and then publish that note, the current software converts the _self into a _target in the published page, which makes the output open a new tab when it opens instead of staying within the same tab.

I would like to have it so that Publish recognizes and keeps whatever hyperlink formatting and options you have so that external links are handled better.

2 Likes

thanks

I totally agree, it would be really nice to be able to have more control over how obsidian behaves on the publish site

I just noticed the same here. I inspected the code and I discovered that Obsidian Publish is adding target="_blank" to the links. Why?

I tried including target="_self" but that was ignored. This doesn’t make any sense. The user should be the one deciding.