aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelog.txt2
-rw-r--r--spec.txt36
2 files changed, 37 insertions, 1 deletions
diff --git a/changelog.txt b/changelog.txt
index 3199637..1071b3c 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -14,6 +14,8 @@
that is not a whitespace character (as defined in the spec).
* Clarified that tab expansion is a preprocessing step (#330).
* Clarified lazy block quote examples (#328).
+ * Clarified precedence of indentation that meets conditions for
+ both list item continuation blocks and indented code.
* Added a test case with `#` directly followed by a letter
(not an ATX header).
* Added two test cases illustrating that a list at the
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/>