aboutsummaryrefslogtreecommitdiff
path: root/spec.txt
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-07-11 08:33:17 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-07-11 08:33:17 -0700
commita1291bf5d9b1215d9d5eb9c2dd4c946e2a243e0d (patch)
treea05eb61c105f4f782c08d5b082c5e51d37bb3760 /spec.txt
parenta3b133b3d39c45f4b833ee94401cb80a15159214 (diff)
Clarified that HTML block is closed at end of containing block.
Not just end of the document. (Parallel to fenced code blocks.)
Diffstat (limited to 'spec.txt')
-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:
.