aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-04-06 23:22:40 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-04-06 23:22:40 -0700
commit57e36bc4e90d59161e2d6843d646e05590578c59 (patch)
tree24cbb20578459f7a4529dccca1464fa8f6752fab
parent4db067d7a1324735f7d86c04668071fa0bf1973f (diff)
Specify dropping of initial/final whitespace in setext heading content.
Closes #461.
-rw-r--r--spec.txt18
1 files 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</em></h1>
````````````````````````````````
+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*→
+====
+.
+<h1>Foo <em>bar
+baz</em></h1>
+````````````````````````````````
+
The underlining can be any length:
@@ -5488,10 +5502,10 @@ Thus, for example, in
<p><code>hi</code>lo`</p>
````````````````````````````````
-
`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: