How to Escape Parentheses in Github Markdown

How to Escape Parentheses in Github Markdown

I have the following line on a markdown text file:

[Recursively] ((computer_science))

When it's rendered the parser breaks the link by picking the first closing parenthesis instead of the second.

The link ends up as (computer_science instead of (computer_science)

How do I escape the first closing bracket?

I have tried using a backslash and using backticks but they don't work.

3

1 Answer

I found a detailed answer and insight of this issue here

Here is a snippet 1. Bare - (1).html 2. Bare, encoded - 3. Delimited - <(1).html> 4. Hyperlink - with <a href="(1).html">parens</a> 5. Markdown Link #1 - with [parens][1] 6. Markdown Link #1 - with [parens at end][2] 7. Markdown Link #2 - with [parens]((1).html) 8. Markdown Link #2 - with [parens at end]((1))

  1. Bare - (1).html
  2. Bare, encoded -
  3. Delimited - (1).html
  4. Hyperlink - with parens
  5. Markdown Link #1 - with parens
  6. Markdown Link #1 - with parens at end
  7. Markdown Link #2 - with parens
  8. Markdown Link #2 - with parens at end

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Robert Thorne
Author

Robert Thorne

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.