Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This always bugged me too. When I had the occasion to create my own, I just did it this way:

Any link like http://example.com/ is converted into a link.

http://example.com|Anchor text| is converted into <a href="http://example>Anchor text</a>

I thought that was as intuitive as I could make it.

I can never remember using markdown whether it's [http:/wwww.example.com](anchor text) or (http://example.com)[anchor text]



My suggestion: Anchor in brackets before or after the link. So this:

    [Some link] http://example.com/
and this:

    http://example.com/ [Some link]
would both become a link with "Some link" as the text. If there are brackets-text both before and after, choose the one after.

This is unambiguous for almost all kinds of text, and anyone who is oblivious to the syntax is unlikely to stumble into it by mistake.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: