cmark

My personal build of CMark ✏️

Commit
15422f68253bd5d877f0b308b1bf6caec6e0eb79
Parent
198d93379594ef80081f2cbd0e6e792cec683f2e
Author
John MacFarlane <jgm@berkeley.edu>
Date

Tweaked the closing fence section added in last commit.

Diffstat

1 file changed, 15 insertions, 31 deletions

Status File Name N° Changes Insertions Deletions
Modified spec.txt 46 15 31
diff --git a/spec.txt b/spec.txt
@@ -1288,45 +1288,41 @@ aaa
 </code></pre>
 .
 
-Closing fences may be indented by 0-3 spaces:
+Four spaces indentation produces an indented code block:
 
 .
-```
-code
-```
-.
-<pre><code>code
-</code></pre>
-.
-
+    ```
+    aaa
+    ```
 .
+<pre><code>```
+aaa
 ```
-code
- ```
-.
-<pre><code>code
 </code></pre>
 .
 
+Closing fences may be indented by 0-3 spaces, and their indentation
+need not match that of the opening fence:
+
 .
 ```
-code
+aaa
   ```
 .
-<pre><code>code
+<pre><code>aaa
 </code></pre>
 .
 
 .
-```
-code
    ```
+aaa
+  ```
 .
-<pre><code>code
+<pre><code>aaa
 </code></pre>
 .
 
-But not by 4:
+This is not a closing fence, because it is indented 4 spaces:
 
 .
 ```
@@ -1338,18 +1334,6 @@ aaa
 </code></pre>
 .
 
-Four spaces indentation produces an indented code block:
-
-.
-    ```
-    aaa
-    ```
-.
-<pre><code>```
-aaa
-```
-</code></pre>
-.
 
 Code fences (opening and closing) cannot contain internal spaces: