cmark

My personal build of CMark ✏️

Commit
befdafd4caef80babc28b597106eb9fe0c6fee0a
Parent
31cca8ff6df2a2d3d37be629ef1defdbf35202c3
Author
John MacFarlane <fiddlosopher@gmail.com>
Date

Documented that two blank lines in fenced code block don't break list.

Diffstat

2 files changed, 16 insertions, 4 deletions

Status File Name N° Changes Insertions Deletions
Modified TODO 3 0 3
Modified spec.txt 17 16 1
diff --git a/TODO b/TODO
@@ -1,4 +1 @@
 - give example of URL not in <> that is not linkified
-- state that two blank lines INSIDE fenced code does not break
-  out of lists -- and make the js implementation obey this
-
diff --git a/spec.txt b/spec.txt
@@ -2527,7 +2527,8 @@ far enough past the blockquote marker:
 .
 
 A list item may not contain blocks that are separated by more than
-one blank line.  Thus, two blank lines will end a list:
+one blank line.  Thus, two blank lines will end a list, unless the
+two blanks are contained in a [fenced code block](#fenced-code-block).
 
 .
 - foo
@@ -2538,6 +2539,13 @@ one blank line.  Thus, two blank lines will end a list:
 
 
   bar
+
+- ```
+  foo
+
+
+  bar
+  ```
 .
 <ul>
 <li><p>foo</p>
@@ -2545,6 +2553,13 @@ one blank line.  Thus, two blank lines will end a list:
 <li><p>foo</p></li>
 </ul>
 <p>bar</p>
+<ul>
+<li><pre><code>foo
+
+
+bar
+</code></pre></li>
+</ul>
 .
 
 A list item may contain any kind of block: