How do you write a link containing a closing bracket in markdown syntax?

后端 未结 3 1292
余生分开走
余生分开走 2021-01-01 14:37

Markdown syntax for a link is pretty simple:

[Example](http://example.com/)

produces:

Example

相关标签:
3条回答
  • 2021-01-01 15:30

    Sometimes you need to encode ) with %29.

    [Syntax](http://en.wikipedia.org/wiki/Syntax_(programming_languages%29)
    

    E.g.: This was the only method I could find to get a correct Markdown preview in the Atom Editor.

    0 讨论(0)
  • 2021-01-01 15:35

    You can try to escape the character:

    [Syntax](http://en.wikipedia.org/wiki/Syntax_\(programming_languages\))
    

    You can also encode the characters

    [Syntax](http://en.wikipedia.org/wiki/Syntax_%28programming_languages%29)
    
    0 讨论(0)
  • 2021-01-01 15:39

    You don't have to scape it at all.

    On GitHub, I've just done the following without any problems:

    [Slowloris](https://en.wikipedia.org/wiki/Slowloris_(computer_security))
    

    Actually, even here you can use it directly, as you can see here.

    0 讨论(0)
提交回复
热议问题