Skip to content

Fixed the toggling behaviour in toggleLinks.#560

Open
pschijven wants to merge 1 commit into
Ionaru:masterfrom
pschijven:fix-toggleLinks
Open

Fixed the toggling behaviour in toggleLinks.#560
pschijven wants to merge 1 commit into
Ionaru:masterfrom
pschijven:fix-toggleLinks

Conversation

@pschijven

Copy link
Copy Markdown

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.

@erossini

erossini commented Jul 1, 2024

Copy link
Copy Markdown

I saw your code. Thank you, it fixed my issue. If you like, here the full code https://github.com/erossini/EasyMarkdownEditor

@pschijven

Copy link
Copy Markdown
Author

I saw your code. Thank you, it fixed my issue. If you like, here the full code https://github.com/erossini/EasyMarkdownEditor

I'm glad that I could be of help 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants