How do I prevent auto-generated links in the GitHub wiki?

前端 未结 5 1391
轻奢々
轻奢々 2021-02-01 12:29

On a GitHub wiki page, if I type:

www.foobar.com

GitHub automatically assumes this is a URL and makes the text a hyperlink to http://www.foobar

5条回答
  •  孤城傲影
    2021-02-01 13:14

    Would suggest to use zero-width no-break space.
    In HTML could be used as Unicode char reference:  or 

    Benefits are:

    • prevents autolinks (obviously)
    • invisible
    • no unexpected line breaks
    • readable in source

    Examples

    For urls insert between http and :
    https​://example.com/ → https​://example.com/

    For emails insert after @:
    user@example.com → user@example.com

提交回复
热议问题