From 3b64d8dd1fc4d2c6308013200d9a491c579dd413 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 11 Aug 2015 09:16:43 -0700 Subject: Small clarifications about ATX headers. Clarified that closing `#`s must be unescaped. Removed misleading reference to "non-whitespace character" in example. Closes #356. --- spec.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'spec.txt') 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:

foo

. -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: -- cgit v1.2.3