aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-08-26 10:49:59 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-08-26 10:49:59 -0700
commitc7f6c794642681d097d0b84920b7a745ed26ecb3 (patch)
tree2a479b111e1c340c9e0829cb71a86fa5e6c574e4
parente121b4e30185ca0513052cc4d08470ee75f9646b (diff)
Simplified revisions to code span normalization rules.
Removed the complex rule about ignoring newlines adjacent to spaces. Now newlines are simply converted to spaces.
-rw-r--r--spec.txt26
1 files changed, 12 insertions, 14 deletions
diff --git a/spec.txt b/spec.txt
index baddf2f..6862838 100644
--- a/spec.txt
+++ b/spec.txt
@@ -5719,13 +5719,12 @@ a backtick string of equal length. The contents of the code span are
the characters between the two backtick strings, normalized in the
following ways:
-- First, [line endings] are converted to [spaces], unless they are
- adjacent to [spaces], in which case they are ignored.
-- If the string both begins *and* ends with a [space] character,
- a single [space] character is removed from the front and back.
- This allows you to include code that begins or ends with backtick
- characters, which must be separated by whitespace from the opening
- or closing backtick strings.
+- First, [line endings] are converted to [spaces].
+- If the resulting string both begins *and* ends with a [space]
+ character, a single [space] character is removed from the
+ front and back. This allows you to include code that begins
+ or ends with backtick characters, which must be separated by
+ whitespace from the opening or closing backtick strings.
This is a simple code span:
@@ -5783,8 +5782,7 @@ stripped in this way:
````````````````````````````````
-[Line endings] are treated like spaces, unless they
-come after spaces, in which case they are ignored.
+[Line endings] are treated like spaces:
```````````````````````````````` example
``
@@ -5793,12 +5791,12 @@ bar
baz
``
.
-<p><code>foo bar baz</code></p>
+<p><code>foo bar baz</code></p>
````````````````````````````````
```````````````````````````````` example
-``
-foo
+``
+foo
``
.
<p><code>foo </code></p>
@@ -5808,7 +5806,7 @@ foo
Interior spaces are not collapsed:
```````````````````````````````` example
-`foo bar
+`foo bar
baz`
.
<p><code>foo bar baz</code></p>
@@ -9038,7 +9036,7 @@ bar</em></p>
Line breaks do not occur inside code spans
```````````````````````````````` example
-`code
+`code
span`
.
<p><code>code span</code></p>