aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec.txt43
1 files changed, 41 insertions, 2 deletions
diff --git a/spec.txt b/spec.txt
index bf8674a..49086f8 100644
--- a/spec.txt
+++ b/spec.txt
@@ -1348,7 +1348,8 @@ aaa
</code></pre>
.
-Unclosed code blocks are closed by the end of the document:
+Unclosed code blocks are closed by the end of the document
+(or the enclosing [block quote] or [list item]):
.
```
@@ -1368,6 +1369,19 @@ aaa
</code></pre>
.
+.
+> ```
+> aaa
+
+bbb
+.
+<blockquote>
+<pre><code>aaa
+</code></pre>
+</blockquote>
+<p>bbb</p>
+.
+
A code block can have all empty lines as its content:
.
@@ -1950,7 +1964,8 @@ p {color:blue;}
.
If there is no matching end tag, the block will end at the
-end of the document:
+end of the document (or the enclosing [block quote] or
+[list item]):
.
<style
@@ -1964,6 +1979,30 @@ foo
foo
.
+.
+> <div>
+> foo
+
+bar
+.
+<blockquote><div>
+foo
+</blockquote>
+<p>bar</p>
+.
+
+.
+- <div>
+- foo
+.
+<ul>
+<li>
+<div>
+</li>
+<li>foo</li>
+</ul>
+.
+
The end tag can occur on the same line as the start tag:
.