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
  • **
  • ****