# The editor doesn't correctly build the link when the selected text contains brackets

The button to create a link doesn't behave correctly when the text contains brackets.

Suppose you want to create a link from "unicorns -[discussion]"; selecting the text, and clicking the link button produces the following output: [unicorns -discussion].

The brackets surround the selected text, but the "[1]" part is inside those brackets, and not outside.

-

This was quick. :-) I agree, the bigger issue was adding links though the button. I think it's rare to remove a link with the button. –  kiamlaluno Oct 7 '11 at 16:04