[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Design proposal for #153 (embedded link syntax)
I read the GitHub Flavored Markdown spec’s section on links (§6.6). Here’s what I propose: In a rich message, a viewer treats any link whose link destination is a non-negative integer as an embedded link. The full GFM link syntax is supported: inline links, reference links of all types, link titles, inlines of all kinds within the link text – you name it. Since a viewer needs a full-powered GFM processor to render rich messages, there’s no reason to limit the link syntax. In a plain text message, to ease the burden on viewers the permitted syntax is a strict subset of the Markdown syntax. Only inline links are supported. Link titles are forbidden. Square brackets in link text must be escaped. Literal backslashes must be escaped. The link destination is a non-negative integer. Anything that does not meet this strict syntax is rendered as plain text. NOTE: This is contrary to the existing spec, which makes no distinction between embedded links in rich messages and plain text message. Examples of embedded links in rich messages:
Examples of embedded links in plain text messages:
Larry |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]