tsutsu3 / linkify-it-py

Links recognition library with full unicode support
Other
15 stars 8 forks source link

No documentation for the simplest usage #57

Open NannoSilver opened 2 months ago

NannoSilver commented 2 months ago

Hi,

This library is interesting and, according to this demo, it does exactly what I am looking for.

The library documentation shows how to add handler and other things, but does not show how to use for a very simple task, that is, convert link to somewhere.com into link to <a href="https://somewhere.com">somewhere.com</a>

I searched for examples across the internet, but could not find.

I tried the following code, but it does not works:

from linkify_it import LinkifyIt

linkify = LinkifyIt()

a = "link to somewhere.com"

result = linkify(a)

print(result)

Can you tell me how to do it?