aboutsummaryrefslogtreecommitdiff
path: root/spec.txt
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-08-11 09:16:43 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-08-11 09:16:43 -0700
commit3b64d8dd1fc4d2c6308013200d9a491c579dd413 (patch)
tree2896cce439918521f5163f24e5f218653f9786d2 /spec.txt
parent8d298a216704c930b57d9aa1d776a0cc05f78908 (diff)
Small clarifications about ATX headers.
Clarified that closing `#`s must be unescaped. Removed misleading reference to "non-whitespace character" in example. Closes #356.
Diffstat (limited to 'spec.txt')
-rw-r--r--spec.txt7
1 files changed, 3 insertions, 4 deletions
diff --git a/spec.txt b/spec.txt
index 44cd88f..ad18245 100644
--- a/spec.txt
+++ b/spec.txt
@@ -575,8 +575,8 @@ If you want a horizontal rule in a list item, use a different bullet:
An [ATX header](@atx-header)
consists of a string of characters, parsed as inline content, between an
opening sequence of 1--6 unescaped `#` characters and an optional
-closing sequence of any number of `#` characters. The opening sequence
-of `#` characters cannot be followed directly by a
+closing sequence of any number of unescaped `#` characters.
+The opening sequence of `#` characters cannot be followed directly by a
[non-whitespace character]. The optional closing sequence of `#`s must be
preceded by a [space] and may be followed by spaces only. The opening
`#` character may be indented 0-3 spaces. The raw contents of the
@@ -708,8 +708,7 @@ Spaces are allowed after the closing sequence:
<h3>foo</h3>
.
-A sequence of `#` characters with a
-[non-whitespace character] following it
+A sequence of `#` characters with anything but [space]s following it
is not a closing sequence, but counts as part of the contents of the
header: