From 15c667c7595cac33420be4ae9f2dfe2b6f57b921 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 13 Jun 2015 16:26:04 -0700 Subject: Added test cases with a literal backslash in a link destination. See jgm/commonmark.js#45. --- spec.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'spec.txt') diff --git a/spec.txt b/spec.txt index ffaa8a2..ac2ce2a 100644 --- a/spec.txt +++ b/spec.txt @@ -1953,6 +1953,17 @@ The link destination may not be omitted:

[foo]

. +Both title and destination can contain backslash escapes +and literal backslashes: + +. +[foo]: /url\bar\*baz "foo\"bar\baz" + +[foo] +. +

foo

+. + A link can come before its corresponding definition: . @@ -5978,6 +5989,15 @@ in Markdown:

link

. +Note that a backslash before a non-escapable character is +just a backslash: + +. +[link](foo\bar) +. +

link

+. + 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 -- cgit v1.2.3