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

[feature] Format links correctly in statuses etc #98

Closed
tsmethurst opened this issue Jul 13, 2021 · 0 comments · Fixed by #120
Closed

[feature] Format links correctly in statuses etc #98

tsmethurst opened this issue Jul 13, 2021 · 0 comments · Fixed by #120
Labels
enhancement New feature or request ux User-experience related.

Comments

@tsmethurst
Copy link
Contributor

We should allow users to post links and format them nicely so they're clickable HREFs.

To determine if part of a post is a link, we can use something like this (if we don't feel like rolling our own regular expressions):

https://github.com/mvdan/xurls

We need to parse and replace links with HREF's before extracting hashtags from a status, to make sure we don't include link fragments as hashtags.

@tsmethurst tsmethurst added enhancement New feature or request ux User-experience related. labels Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ux User-experience related.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant