3 ms·
I struggled with it, until I learned about "reference style" links in the original Markdown spec: this is a link [1] [1]: <link> would display 1 and direct y
by chc4 9y ago
I struggled with it, until I learned about "reference style" links in the original Markdown spec:
this is a link [1]
[1]: <link>
would display 1 and direct you to <link>. Then inline links are just reference links but you have the location in parenthesis after the link body, as an aside.
- lloeki 9y agoThe reference style is my mnemonic to the order as well as where the parentheses are for non-reference links: since the reference definition uses []: then the reference uses [] too, and since the reference comes naturally after the text, then a non-ref link has the URL in not-[], hence (), and after the text too. IOW I just think about "inlining" the reference, which would have otherwise used [] everywhere. Feels much more regular that way around.