Akshay Akshay - 15 days ago 6
Markdown Question

Showing links in bot using markdown

If we need to add links, this is how we do:

[hello](www.greetings.com)


Now suppose the link itself contains round brackets, for example consider the scenario below:

[hello](www.gr(ee)tings.com)


markdown is showing the above link as:

hellotings.com)

because it takes the first closing bracket as the end of the link. How to handle such scenario?

Answer

You should be able to make this work using reference-style links, e.g.

[hello][some-id]

[some-id]: http://www.gr(ee)tings.com

Alternatively, escaping the inner parentheses should work:

[hello](www.gr\(ee\)tings.com)