cmark

My personal build of CMark ✏️

Commit
cffc51b19828d67b246cb367da3b8b45270e5a62
Parent
c56aa1514f04a5e369b35e92cf56186575a40af1
Author
John MacFarlane <jgm@berkeley.edu>
Date

Update spec.

Diffstat

1 file changed, 14 insertions, 3 deletions

Status File Name N° Changes Insertions Deletions
Modified test/spec.txt 17 14 3
diff --git 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>
 ````````````````````````````````
 
@@ -5758,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.
@@ -5818,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: