How to use angle brackets in URL on Github Flavored Markdown?

后端 未结 3 1771
终归单人心
终归单人心 2021-01-15 11:46

I want to use angle brackets in URL on Github Flavor Markdown.

Markdown:

1. Fork it ( http://github.com//oooooaaaa/fork )
<         


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

    Using backslash inside a ()[] construction seems to work. (Tested on GitHub now.) It does not work on SO though.. For example:

    1. Fork it ( [http://github.com/\<my-github-username\>/oooooaaaa/fork](http://github.com/\<my-github-username\>/oooooaaaa/fork) )
    
    0 讨论(0)
  • 2021-01-15 11:55

    Even this example below works as expected.

    http://github.com/(my-github-username)/oooooaaaa/fork

    0 讨论(0)
  • 2021-01-15 11:57

    Since the angle brackets < and > cannot easily be used (or escaped or encoded) in GitHub Flavored Markdown, one workaround would be to used square brackets:

    http://github.com/[my-github-username]/oooooaaaa/fork
    

    That does give the expected result:

    a href="http://github.com/">http://github.com/[my-github-username]/oooooaaaa/fork</a>
    
    0 讨论(0)
提交回复
热议问题