Http://localhost/ is not clickable in preview

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

2 posts were merged into an existing topic: Auto conversion to link doesn’t work for URL without TLD