cmark

My personal build of CMark ✏️

Commit
645ea4e735a85c7554e0247015ed8f61d4888a86
Parent
68ab4cc72e709c86c976063945d3a37f0fbdb330
Author
John MacFarlane <jgm@berkeley.edu>
Date

Updated spec.txt.

Diffstat

1 file changed, 20 insertions, 0 deletions

Status File Name N° Changes Insertions Deletions
Modified test/spec.txt 20 20 0
diff --git a/test/spec.txt b/test/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:
 
 .
@@ -5978,6 +5989,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