aboutsummaryrefslogtreecommitdiff
path: root/spec.txt
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-06-08 11:08:02 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-06-08 11:09:17 -0700
commit4e3dc98f56a6d7fbb21659548d26cfba6e9ab7fb (patch)
tree0d556774e6667031af46d1ecf8e821c66cfc8114 /spec.txt
parent5976351c4da21f429648abf986954ad45c9fbcd7 (diff)
Clarified precedence of indentation: code block vs. list item.
Added examples.
Diffstat (limited to 'spec.txt')
-rw-r--r--spec.txt36
1 files changed, 35 insertions, 1 deletions
diff --git a/spec.txt b/spec.txt
index 4fff84d..7b22962 100644
--- a/spec.txt
+++ b/spec.txt
@@ -1034,7 +1034,41 @@ paragraph.)
</code></pre>
.
-The contents are literal text, and do not get parsed as Markdown:
+If there is any ambiguity between an interpretation of indentation
+as a code block and as indicating that material belongs to a [list
+item][list items], the list item interpretation takes precedence:
+
+.
+ - foo
+
+ bar
+.
+<ul>
+<li>
+<p>foo</p>
+<p>bar</p>
+</li>
+</ul>
+.
+
+.
+1. foo
+
+ - bar
+.
+<ol>
+<li>
+<p>foo</p>
+<ul>
+<li>bar</li>
+</ul>
+</li>
+</ol>
+.
+
+
+The contents of a code block are literal text, and do not get parsed
+as Markdown:
.
<a/>