From ba088a7a3cd12202e1c0ed71b888adbf19217dcc Mon Sep 17 00:00:00 2001 From: Sam Whited Date: Fri, 10 Nov 2017 13:35:25 -0600 Subject: [PATCH] styling: minor fixes to span rules and examples --- inbox/styling.xml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/inbox/styling.xml b/inbox/styling.xml index 9ee3367a..178bd9ff 100644 --- a/inbox/styling.xml +++ b/inbox/styling.xml @@ -161,19 +161,24 @@ be located at the beginning of the line, or after a whitespace character. The opening styling directive MUST also not be followed by a whitespace character. + The closing styling directive MUST NOT be preceeded by a whitespace + character. Spans are always parsed from the beginning of the byte stream to the end and are lazily matched. + Characters that would be styling directives but do not follow these rules + are not considered when matching and thus may be present between two other + styling directives.

- For example, the word "emphasized" would be styled in each of the - following messages: + For example, each of the following would be emphasized as indicated:

Nothing would be styled in the following messages (where \n represents a @@ -183,6 +188,7 @@

  • not emphasized*
  • *not emphasized
  • *not \n emphasized*
  • +
  • *foo *bar
  • **
  • ****