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

Custom link validation function option - link extension #1730

Closed
marcoSven opened this issue Jun 21, 2022 · 2 comments · Fixed by #1817
Closed

Custom link validation function option - link extension #1730

marcoSven opened this issue Jun 21, 2022 · 2 comments · Fixed by #1817

Comments

@marcoSven
Copy link
Contributor

Description

Ability to provide a custom link validation function for the Remirror link extension.

Context

For a project that already uses another method of link validation, it would be more maintainable and easier to match results.

@Amethystafyy282
Copy link

I think this might help.
new LinkExtension({ autoLinkRegex: 'your_regexp' }),

@marcoSven
Copy link
Contributor Author

Thank you @Amethystafyy282 I am aware of this option but I am proposing the option to provide your own validation that would be used instead of the autoLinkRegex

marcoSven@f7f824f#diff-c6362a6560783faf0b832a4b10098233042a3092f87b84b29f28f46c94410ac9R158

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