4 ms·
I have never met a markup language with a intuitive way to make links. I wish they would all just support a href HTML and convert it internally to whatever the
by smackfu 14y ago
I have never met a markup language with a intuitive way to make links. I wish they would all just support a href HTML and convert it internally to whatever their weird option is.
- jeff303 14y agoTWiki's isn't horrible. [[URL][text]] (or just leave out the text part)
- smackfu 14y agoI still inevitably have to look up the syntax, like which comes first, URL or text.
- maxerickson 14y agoMarkdown doesn't convert it backwards for you, but a big feature is that it passes html through. The linked article is a little wrong though, the "Stack Overflow" alternative link syntax is a mainline feature.
- crdoconnor 14y agoThis 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/ http://example.com/ is converted into a link. http://example.com|Anchor http://example.com|Anchor text| is converted into <a href="http://example>Anchor 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 http://example.com)[anchor text]
- lobster_johnson 14y agoMy 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.