I was editing a tag wiki, and I have noticed that in some cases, when I select text to make it a link, the text that is converted in a link includes characters that were not selected.
For example, if I try to convert [this inline link](http://example.com)
in a link, I get the following result.
I delete the parenthesis, cut the URL, and delete all rest of the text to the right of the text I want to use as link text.
I select the text that will be the text link.
I click on the button to create a link; and paste the URL in the dialog box that appears. When the dialog box is closed, this is the result. The character to the left of the selected text is included.
if the character to the left is included to be escaped, that is not necessary, as I could have an open bracket to the left of the Markdown markup for the link, and it would be correctly parsed: [screenshot.
This happens also when you change in a link a word that is followed by a closed bracket, as in the following text:
[Reference: myself]
The expected result would be <sub>[Reference: [myself][5]]</sub>
, while the actual result is <sub>[Reference: [myself\]][5]</sub>
.
In this case, I highlighted "myself" and clicked the button to change it to a link.