remirror icon indicating copy to clipboard operation
remirror copied to clipboard

Custom link validation function option - link extension

Open marcoSven opened this issue 2 years ago • 2 comments

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.

marcoSven avatar Jun 21 '22 13:06 marcoSven

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

Amethystafyy282 avatar Jun 23 '22 08:06 Amethystafyy282

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

https://github.com/marcoSven/remirror/commit/f7f824fd4e72e53e16f69b4617d8f1190009ef8a#diff-c6362a6560783faf0b832a4b10098233042a3092f87b84b29f28f46c94410ac9R158

marcoSven avatar Jun 23 '22 11:06 marcoSven