diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-06-08 11:08:02 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-06-08 11:09:17 -0700 |
commit | 4e3dc98f56a6d7fbb21659548d26cfba6e9ab7fb (patch) | |
tree | 0d556774e6667031af46d1ecf8e821c66cfc8114 | |
parent | 5976351c4da21f429648abf986954ad45c9fbcd7 (diff) |
Clarified precedence of indentation: code block vs. list item.
Added examples.
-rw-r--r-- | changelog.txt | 2 | ||||
-rw-r--r-- | spec.txt | 36 |
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 @@ -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/> |