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 /spec.txt | |
parent | 5976351c4da21f429648abf986954ad45c9fbcd7 (diff) |
Clarified precedence of indentation: code block vs. list item.
Added examples.
Diffstat (limited to 'spec.txt')
-rw-r--r-- | spec.txt | 36 |
1 files changed, 35 insertions, 1 deletions
@@ -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/> |