2022-05-05
Patch Changes
- Update ProseMirror packages.
-
Add support for
autoLinkAllowedTLDs
which enables the restriction of auto links to a set of Top Level Domains (TLDs). Defaults to the top 50 TLDs (as of May 2022).For a more complete list, you could replace this with the
tlds
orglobal-list-tlds
packages.Or to extend the default list you could
import { LinkExtension, TOP_50_TLDS } from 'remirror/extensions'; const extensions = () => [ new LinkExtension({ autoLinkAllowedTLDs: [...TOP_50_TLDS, 'london', 'tech'] }), ];
Tweak auto link regex to prevent match of single digit domains (i.e. 1.com) and remove support for hostnames ending with "." i.e. "remirror.io."
-
Updated dependencies []:
- @remirror/extension-yjs@1.0.31
- @remirror/pm@1.0.18
- @remirror/extension-embed@1.1.29
- @remirror/extension-image@1.0.34
- @remirror/preset-wysiwyg@1.1.51
- @remirror/extension-link@1.2.0