'How can I write a link text containing a square bracket in Markdown?

I'm using Rocket.Chat and trying to link using link text like this:

[link-text]

However, when I try

[[link-text]](http://example.com/)

...it doesn't work, and when I try

[\[link-text\]](http://example.com/)

...it is recognized as KaTeX.

How can I write a link containing a square bracket in Rocket.Chat?



Solution 1:[1]

You can use fullwidth square brackets (U+FF3B, U+FF3D) instead:

[?link-text?](http://example.com/)

Result:

result of formatting

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Tamás Sengel