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

fix(NcRichText): Allow markdown parenthesis in URL_PATTERN #6224

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

provokateurin
Copy link

The URL_PATTERN_AUTOLINK regex already allowed parenthesis from markdown, so the links were clickable, but there was no preview shown due to this regex not allowing them.

☑️ Resolves

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • 📘 Component documentation has been extended, updated or is not applicable
  • 3️⃣ Backport to next requested with a Vue 3 upgrade

@provokateurin provokateurin added bug Something isn't working 3. to review Waiting for reviews labels Nov 16, 2024
@provokateurin
Copy link
Author

I'm not sure which milestones and branches are used in this repo, so feel free to backport however you see fit.

@provokateurin provokateurin force-pushed the fix/ncrichtext/url-pattern-markdown-parenthesis branch from b3858e2 to 013ae78 Compare November 16, 2024 10:30
@provokateurin provokateurin changed the title fix(NcRichTest): Allow markdown parenthesis in URL_PATTERN fix(NcRichText): Allow markdown parenthesis in URL_PATTERN Nov 16, 2024
@ShGKme ShGKme added this to the 8.20.1 milestone Nov 16, 2024
@ShGKme ShGKme added the feature: richtext Related to the richtext component label Nov 16, 2024
Copy link
Contributor

@ShGKme ShGKme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested, thanks

Copy link
Contributor

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs extensive tests added to not break cases like:

Please check the website (https://nextcloud.com/)
Please check the website https://nextcloud.com/wikipedia_(has-braces)

And the likes. It was a long fight with usability of most users. So we really prefer broken previous over broken UX of normal users posting behaviour

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working feature: richtext Related to the richtext component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parsing differences between NcRichText and Reference API lead to inconsistent link previews
3 participants