From 57e36bc4e90d59161e2d6843d646e05590578c59 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 6 Apr 2019 23:22:40 -0700 Subject: Specify dropping of initial/final whitespace in setext heading content. Closes #461. --- spec.txt | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/spec.txt b/spec.txt index 3d29369..fc5a9ab 100644 --- a/spec.txt +++ b/spec.txt @@ -827,7 +827,7 @@ Contents are parsed as inlines: ```````````````````````````````` -Leading and trailing blanks are ignored in parsing inline content: +Leading and trailing [whitespace] is ignored in parsing inline content: ```````````````````````````````` example # foo @@ -1026,6 +1026,20 @@ baz* baz ```````````````````````````````` +The contents are the result of parsing the headings's raw +content as inlines. The heading's raw content is formed by +concatenating the lines and removing initial and final +[whitespace]. + +```````````````````````````````` example + Foo *bar +baz*→ +==== +. +

Foo bar +baz

+```````````````````````````````` + The underlining can be any length: @@ -5488,10 +5502,10 @@ Thus, for example, in

hilo`

```````````````````````````````` - `hi` is parsed as code, leaving the backtick at the end as a literal backtick. + ## Backslash escapes Any ASCII punctuation character may be backslash-escaped: -- cgit v1.2.3