Auto conversion to link doesn't work for URL without TLD in preview

Steps to reproduce

Type any valid URL that doesn’t include a TLD (excepting IP addresses - those work fine). It’s formatting in edit mode changes to show it is understood to be a URL.

image

Expected result

URL is clickable in preview mode

Actual result

URL is plain text in preview mode

image

Environment

  • Operating system: Win10
  • Obsidian version: 8.0.14
1 Like

Confirmed on 0.8.15, Windows 10.

as a workaroud, you can always use markdown links [page](http://internalserver/page)

That’s what I’ve been doing as a workaround. Just thought I’d bring it up as a bug because the of the difference in behavior in editor and in preview recognizing the link.

2 Likes

I’m not totally sure if this is a bug or by design, but local hyperlinks (or any hyperlink with no dot in the server address) are not converted into clickable links.

Steps to reproduce

Write the following addresses in a markdown document: http://example.com/ and http://localhost/. Then open the document in the viewer.

Expected result

You see both URLs, but only the one to example.com is clickable.

Actual result

Both URLs would be expected to be clickable.

Ironically, in the editor, both URLs are underlined and can be ctrl-clicked to open in an external webbrowser. Also, the link http://www.localhost/ does become clickable…

Environment

  • Operating system: Windows 10
  • Obsidian version: 0.9.10

Additional information

you can always use [localhost](http://localhost/)