Commit 2a7b97ed462fef6afbd040c5acc6e85bc58f26be

Martin Mitas 2019-04-05T08:18:54

test/spec.txt: Update from upstream head.

diff --git a/test/spec.txt b/test/spec.txt
index 4162938..6384390 100644
--- a/test/spec.txt
+++ b/test/spec.txt
@@ -248,7 +248,7 @@ satisfactory replacement for a spec.
 
 Because there is no unambiguous spec, implementations have diverged
 considerably.  As a result, users are often surprised to find that
-a document that renders one way on one system (say, a github wiki)
+a document that renders one way on one system (say, a GitHub wiki)
 renders differently on another (say, converting to docbook using
 pandoc).  To make matters worse, because nothing in Markdown counts
 as a "syntax error," the divergence often isn't discovered right away.
@@ -1872,7 +1872,7 @@ Code fences (opening and closing) cannot contain internal spaces:
 ``` ```
 aaa
 .
-<p><code></code>
+<p><code> </code>
 aaa</p>
 ````````````````````````````````
 
@@ -2896,6 +2896,17 @@ The link destination may not be omitted:
 <p>[foo]</p>
 ````````````````````````````````
 
+ However, an empty link destination may be specified using
+ angle brackets:
+
+```````````````````````````````` example
+[foo]: <>
+
+[foo]
+.
+<p><a href="">foo</a></p>
+````````````````````````````````
+
 The title must be separated from the link destination by
 whitespace:
 
@@ -5747,7 +5758,8 @@ following ways:
 
 - First, [line endings] are converted to [spaces].
 - If the resulting string both begins *and* ends with a [space]
-  character, a single [space] character is removed from the
+  character, but does not consist entirely of [space]
+  characters, a single [space] character is removed from the
   front and back.  This allows you to include code that begins
   or ends with backtick characters, which must be separated by
   whitespace from the opening or closing backtick strings.
@@ -5807,6 +5819,16 @@ stripped in this way:
 <p><code> b </code></p>
 ````````````````````````````````
 
+No stripping occurs if the code span contains only spaces:
+
+```````````````````````````````` example
+` `
+`  `
+.
+<p><code> </code>
+<code>  </code></p>
+````````````````````````````````
+
 
 [Line endings] are treated like spaces: