From bcf7f728e4f4240ec23dd38b1159a33a9584ce79 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 4 Apr 2019 21:58:13 -0700 Subject: 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. --- spec.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/spec.txt b/spec.txt index e882df4..c356348 100644 --- a/spec.txt +++ b/spec.txt @@ -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:

 b 

```````````````````````````````` +No stripping occurs if the code span contains only spaces: + +```````````````````````````````` example +` ` +` ` +. +

  +

+```````````````````````````````` + [Line endings] are treated like spaces: -- cgit v1.2.3