aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-04-27 20:16:15 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-04-27 20:16:15 -0700
commit8a8efc0c8977add17d077701a4cf7cb3d2e5bfd2 (patch)
treeb489d38b89f967d2ac7af4ce50be546219ba9545
parentb020bff3aa8bbfcc9ec213f0c2a82c06d3286239 (diff)
Clarified that a code fence followed by header line isn't a header.
Closes #306.
-rw-r--r--spec.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/spec.txt b/spec.txt
index 89bee15..3c1f712 100644
--- a/spec.txt
+++ b/spec.txt
@@ -724,13 +724,14 @@ ATX headers can be empty:
## Setext headers
A [setext header](@setext-header)
-consists of a line of text, containing at least one
-[non-space character],
+consists of a line of text, containing at least one [non-space character],
with no more than 3 spaces indentation, followed by a [setext header
underline]. The line of text must be
one that, were it not followed by the setext header underline,
-would be interpreted as part of a paragraph: it cannot be a code
-block, header, blockquote, horizontal rule, or list.
+would be interpreted as part of a paragraph: it cannot be
+interpretable as a [code fence], [ATX header][ATX headers],
+[block quote][block quotes], [horizontal rule][horizontal rules],
+[list item][list items], or [HTML block][HTML blocks].
A [setext header underline](@setext-header-underline) is a sequence of
`=` characters or a sequence of `-` characters, with no more than 3