Open spicyMcCrispy opened 3 weeks ago
The update enhances the AutoLink
plugin in CKEditor to handle trailing punctuation more effectively. It ensures that punctuation marks like periods, commas, etc., are not mistakenly included in auto-generated URLs.
File Path | Change Summary |
---|---|
packages/ckeditor5-link/src/autolink.ts |
Updated link detection to include additional punctuation checks at the end of text for creating links. Added support for special characters as alternatives to space for link creation. Improved isSingleSpaceAtTheEnd function to consider various punctuation marks. |
packages/ckeditor5-link/tests/autolink.js , packages/ckeditor5-link/tests/manual/autolink.md |
Added tests for link creation with different punctuation marks to expand test coverage. |
Objective | Addressed | Explanation |
---|---|---|
Autolink should not include trailing punctuation (#14497) | ✅ |
Made it so that when typing, including copy and paste, typing ending punctuations will have the link be recognised as a link. Added only for ending so parameters using ? are not affected.
Type: Message. Closes #14497
Summary by CodeRabbit