diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-04-04 21:58:13 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-04-04 21:58:13 -0700 |
commit | bcf7f728e4f4240ec23dd38b1159a33a9584ce79 (patch) | |
tree | 5e64f1826f63918fae3f59d8ce6e9656fa608fbd | |
parent | 243df9b2f22e7bd94b7608b2dfceacbcfc00f497 (diff) |
Don't strip spaces in code span containing only spaces.
This allows one to include a code span with just spaces,
using the most obvious syntax.
Fixes #569.
-rw-r--r-- | spec.txt | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -5758,7 +5758,8 @@ following ways: - 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 + character, but does not consist entirely of [space] + characters, 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. @@ -5818,6 +5819,16 @@ stripped in this way: <p><code> b </code></p> ```````````````````````````````` +No stripping occurs if the code span contains only spaces: + +```````````````````````````````` example +` ` +` ` +. +<p><code> </code> +<code> </code></p> +```````````````````````````````` + [Line endings] are treated like spaces: |