aboutsummaryrefslogtreecommitdiff
path: root/spec.txt
diff options
context:
space:
mode:
Diffstat (limited to 'spec.txt')
-rw-r--r--spec.txt37
1 files changed, 35 insertions, 2 deletions
diff --git a/spec.txt b/spec.txt
index 80827c9..f6ea793 100644
--- a/spec.txt
+++ b/spec.txt
@@ -1953,6 +1953,17 @@ The link destination may not be omitted:
<p>[foo]</p>
.
+Both title and destination can contain backslash escapes
+and literal backslashes:
+
+.
+[foo]: /url\bar\*baz "foo\"bar\baz"
+
+[foo]
+.
+<p><a href="/url%5Cbar*baz" title="foo&quot;bar\baz">foo</a></p>
+.
+
A link can come before its corresponding definition:
.
@@ -2022,6 +2033,15 @@ This is not a link reference definition, because there are
<p>[foo]: /url &quot;title&quot; ok</p>
.
+This is a link reference definition, but it has no title:
+
+.
+[foo]: /url
+"title" ok
+.
+<p>&quot;title&quot; ok</p>
+.
+
This is not a link reference definition, because it is indented
four spaces:
@@ -4356,9 +4376,13 @@ is used as an authoritative source of the valid entity names and their
corresponding codepoints.
.
-&nbsp; &amp; &copy; &AElig; &Dcaron; &frac34; &HilbertSpace; &DifferentialD; &ClockwiseContourIntegral;
+&nbsp; &amp; &copy; &AElig; &Dcaron;
+&frac34; &HilbertSpace; &DifferentialD;
+&ClockwiseContourIntegral; &ngE;
.
-<p>  &amp; © Æ Ď ¾ ℋ ⅆ ∲</p>
+<p>  &amp; © Æ Ď
+¾ ℋ ⅆ
+∲ ≧̸</p>
.
[Decimal entities](@decimal-entities)
@@ -5976,6 +6000,15 @@ in Markdown:
<p><a href="foo):">link</a></p>
.
+Note that a backslash before a non-escapable character is
+just a backslash:
+
+.
+[link](foo\bar)
+.
+<p><a href="foo%5Cbar">link</a></p>
+.
+
URL-escaping should be left alone inside the destination, as all
URL-escaped characters are also valid URL characters. HTML entities in
the destination will be parsed into the corresponding unicode