aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-01-07 22:37:49 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2016-01-07 22:37:49 -0800
commit1357f2859ecb128636ea7a764b70407dca4e4015 (patch)
tree5e0e289e5f2391ff612fff8036f6c11f26ae41fb
parentca7a7fa7ad536ce4e1f3004ec1e718a1d1d8b1f7 (diff)
Made compatibility notes for setext headings into spec tests.
-rw-r--r--spec.txt35
1 files changed, 27 insertions, 8 deletions
diff --git a/spec.txt b/spec.txt
index e4a9ee3..85356de 100644
--- a/spec.txt
+++ b/spec.txt
@@ -1105,44 +1105,63 @@ increases the expressive power of CommonMark, by allowing
multiline headings. Authors who want interpretation 1 can
put a blank line after the first paragraph:
-``` markdown
+.
Foo
bar
---
baz
-```
+.
+<p>Foo</p>
+<h2>bar</h2>
+<p>baz</p>
+.
Authors who want interpretation 2 can put blank lines around
the thematic break,
-``` markdown
+.
Foo
bar
---
baz
-```
+.
+<p>Foo
+bar</p>
+<hr />
+<p>baz</p>
+.
or use a thematic break that cannot count as a [setext heading
line], such as
-``` markdown
+.
Foo
bar
* * *
baz
-```
+.
+<p>Foo
+bar</p>
+<hr />
+<p>baz</p>
+.
Authors who want interpretation 3 can use backslash escapes:
-``` markdown
+.
Foo
bar
\---
baz
-```
+.
+<p>Foo
+bar
+---
+baz</p>
+.
## Indented code blocks