diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-04-06 23:22:40 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-04-06 23:22:40 -0700 |
commit | 57e36bc4e90d59161e2d6843d646e05590578c59 (patch) | |
tree | 24cbb20578459f7a4529dccca1464fa8f6752fab | |
parent | 4db067d7a1324735f7d86c04668071fa0bf1973f (diff) |
Specify dropping of initial/final whitespace in setext heading content.
Closes #461.
-rw-r--r-- | spec.txt | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -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: |