Search code examples
markdownrocket.chat

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

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

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

    Result:

    result of formatting