Skip to content

Commit

Permalink
fix(ext-link): not auto detecting adjacent text
Browse files Browse the repository at this point in the history
Before this change:

Auto link detection did not detect adjacent text.

Example:

Insert "window.confirm" results in [window.co](window.co)nfirm

After this change:

Adjacent text is detected and possibly removes invalid link or
creates a link

Example:

Insert "window.confirm" results in window.confirm

Added "adjacentPunctuations" option to configure
which adjacent punctuation are excluded from links

Closes #1732
  • Loading branch information
marcoSven committed Jul 25, 2022
1 parent 35c0098 commit 89c4d54
Show file tree
Hide file tree
Showing 4 changed files with 1,105 additions and 118 deletions.
25 changes: 25 additions & 0 deletions .changeset/sharp-melons-switch.md
@@ -0,0 +1,25 @@
---
'@remirror/extension-link': patch
---

# fix(ext-link): not auto detecting adjacent text

Closes issue [1732](https://github.com/remirror/remirror/issues/1732)

## Before this change:

Auto link detection did not detect adjacent text.

### Example:

Insert "window.confirm" results in "[window.co](//window.co)nfirm"

## After this change:

Adjacent text is detected and possibly removes invalid link or creates a link

### Example:

Insert "window.confirm" results in "window.confirm"

Added "adjacentPunctuations" option to configure which adjacent punctuation are excluded from links

0 comments on commit 89c4d54

Please sign in to comment.