easy-markdown-editor
easy-markdown-editor copied to clipboard
Fixed the toggling behaviour in toggleLinks.
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.