← Back to team overview

zim-wiki team mailing list archive

Re: URLs without domain do not get auto-hyperlinked

 

Yes, this is intentional. Followed the Github Flavored Markdown spec on how
to match valid URLs. Want to avoid too lax matching. You can still turn
those URLs into links using Ctrl-L.

Regards,

Jaap

On Thu, Apr 22, 2021 at 6:05 PM Steve Chadsey <schadsey@xxxxxxxxx> wrote:

> Hello,
>
> zim version0.73.5-t202104131839~ubuntu18.04.1 on Ubuntu 18.04.5 LTS,
> 4.15.0-140-generic, x86_64
>
> I've just updated from 0.68~rc1-2 to the above version. I have noticed
> that when I paste URLs that contain only a hostname (e.g.,
> https://site/path) into a page, they don't get auto-hyperlinked. When the
> hostname is fully qualified, the URLs do get auto-hyperlinked. Is this a
> known issue? Both URL types would get auto-hyperlinked in the 0.68 version.
>
> Steps to reproduce:
> 1. Paste or type a URL into a zim page
> 2. Hit <enter> or ctrl-R to refresh
>
> Test cases:
> Failing:
> http://site
> http://site/
> http://site/path
> https://site
> https://site/
> https://site/path
>
> Passing:
> http://site.test
> http://site.test/
> http://site.test/path
> https://site.test
> https://site.test/
> https://site.test/path
>
> Thanks,
> --
> Steve Chadsey <schadsey@xxxxxxxxx>
> _______________________________________________
> Mailing list: https://launchpad.net/~zim-wiki
> Post to     : zim-wiki@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~zim-wiki
> More help   : https://help.launchpad.net/ListHelp
>

Follow ups

References