easy-markdown-editor icon indicating copy to clipboard operation
easy-markdown-editor copied to clipboard

Fixed the toggling behaviour in toggleLinks.

Open pschijven opened this issue 1 year ago • 2 comments

This pull request fixes a small issue in the toggleLinks method.

Suppose I have selected the text uri and then press Cmd+K to create a link. Then the text [uri](https://) will be generated. If I press Cmd+K again, it currently reverts the text back to [uri instead of uri.

I have made a small correction to the regular expression in the toggleLinks method to fix this problem.

pschijven avatar Sep 06 '23 11:09 pschijven