Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Onion links #55

Open
w4t3r1ily opened this issue Dec 30, 2022 · 6 comments
Open

Onion links #55

w4t3r1ily opened this issue Dec 30, 2022 · 6 comments

Comments

@w4t3r1ily
Copy link

w4t3r1ily commented Dec 30, 2022

Realized LPP doesnt linkify onion links. Is that purpose or bug?

@eight04
Copy link
Owner

eight04 commented Jan 2, 2023

Can you provide some examples?

@w4t3r1ily
Copy link
Author

w4t3r1ily commented Jan 2, 2023

I just mean that something.onion doesn't turn into link the same way something.com does.

@eight04
Copy link
Owner

eight04 commented Feb 16, 2024

The script validates a URL by its top level domain. You can see a list here:
https://github.com/eight04/linkify-plus-plus-core/blob/master/lib/tlds.json
Since .onion is not a valid domain, it won't be linkified.

@eight04
Copy link
Owner

eight04 commented Feb 16, 2024

Do onion links have the same format as regular URLs? If so then we can try adding .onion to TLD list so they will be linkified as well.

@w4t3r1ily
Copy link
Author

Yes, I tried that and it works.

@w4t3r1ily
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants