diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-10-26 00:18:05 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-10-26 00:18:05 -0700 |
commit | 198d93379594ef80081f2cbd0e6e792cec683f2e (patch) | |
tree | eee0d182b6f077b2d5c6e3801e53e27dd954aec1 /spec.txt | |
parent | b964cd14c1574388e805c2b173d21ba5c43cbe42 (diff) | |
parent | adfa8750cd771688156e0f386b980f9214c4063b (diff) |
Merge pull request #116 from Bengt/code_block_closing_fences
Add example from issue #94 about indented code block closing fences
Diffstat (limited to 'spec.txt')
-rw-r--r-- | spec.txt | 52 |
1 files changed, 50 insertions, 2 deletions
@@ -1288,6 +1288,56 @@ aaa </code></pre> . +Closing fences may be indented by 0-3 spaces: + +. +``` +code +``` +. +<pre><code>code +</code></pre> +. + +. +``` +code + ``` +. +<pre><code>code +</code></pre> +. + +. +``` +code + ``` +. +<pre><code>code +</code></pre> +. + +. +``` +code + ``` +. +<pre><code>code +</code></pre> +. + +But not by 4: + +. +``` +aaa + ``` +. +<pre><code>aaa + ``` +</code></pre> +. + Four spaces indentation produces an indented code block: . @@ -6440,5 +6490,3 @@ an `emph`. The document can be rendered as HTML, or in any other format, given an appropriate renderer. - - |