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

Add support for custom link regexes via TextEditorOptions. #399

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

Conversation

Quogu
Copy link

@Quogu Quogu commented May 3, 2023

My use-case is that I would like hyperlinks to be able to have semicolons and commas in and still parse.

During the implementation of this PR, I realised that there is another extensibility point, subclassing LinkElementGenerator and then adding it to the TextView.ElementGenerators collection, but I found this hard to discover without first digging into the code, and I think there's still potentially value in exposing this property more easily via TextEditorOptions. That being said, I can understand if you don't want to accept the PR as a result of this.

My use-case is that I would like hyperlinks to be able to have semicolons and commas in and still parse.

During the implementation of this PR, I realised that there is another extensibility point, subclassing LinkElementGenerator and then adding it to the TextView.ElementGenerators collection, but I found this hard to discover without first digging into the code, and I think there's still potentially value in exposing this property more easily via TextEditorOptions. That being said, I can understand if you don't want to accept the PR as a result of this.
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

Successfully merging this pull request may close these issues.

1 participant