From 5027edb84f573033a9f247b69d35d91427662839 Mon Sep 17 00:00:00 2001 From: Sam Whited Date: Thu, 15 Feb 2018 15:20:08 -0600 Subject: [PATCH] XEP-0393: reorder span and block sections --- xep-0393.xml | 154 +++++++++++++++++++++++++-------------------------- 1 file changed, 77 insertions(+), 77 deletions(-) diff --git a/xep-0393.xml b/xep-0393.xml index 61e7ad02..051fb38c 100644 --- a/xep-0393.xml +++ b/xep-0393.xml @@ -202,6 +202,83 @@ + +

+ Parsers implementing message styling will first parse blocks and then + parse child blocks or spans if allowed by the specific block type. +

+ +

+ Groups of lines that are not part of any other block are considered a + "plain" block, as are individual lines of text that are not inside of a + preformatted text block. + Plain blocks are not bound by styling directives and do not imply + formatting themselves, but they may contain spans which imply + formatting. +

+ + ((There are four blocks in this body marked by parens,) + (but there is no *formatting) + (as spans* may not escape blocks.)) + +]]> +
+ +

+ A preformatted text block is started by a line beginning with "```" + (U+0060 GRAVE ACCENT), and ended by a line containing only three grave + accents or the end of the parent block (whichever comes first). + Preformatted text blocks cannot contain child blocks and other styling + MUST NOT be rendered inside the block. + Text inside a preformatted block SHOULD be displayed in a monospace font. +

+ + ```ignored + (println "Hello, world!") + ``` + + This should show up as monospace, preformatted text ⤴ + +]]> + + > ``` + > (println "Hello, world!") + + The entire blockquote is a preformatted text block, but this line is + plaintext! + +]]> +
+ +

+ A quotation is indicated by one or more lines with a byte stream + beginning with a '>' (U+003E GREATER-THAN SIGN). + Block quotes may contain any child block, including other quotations. + Lines inside the block quote MUST have leading spaces trimmed before + parsing the child block. + It is RECOMMENDED that text inside of a block quote be indented or + distinguished from the surrounding text in some other way. +

+ + > That that is, is. + + Said the old hermit of Prague. + +]]> + + >> That that is, is. + > Said the old hermit of Prague. + + Who? + +]]> +
+

Matches of spans between two styling directives MUST contain some text @@ -302,83 +379,6 @@ Wow, I can write in `monospace`! -]]> - - - -

- Parsers implementing message styling will first parse blocks and then - parse child blocks or spans if allowed by the specific block type. -

- -

- Groups of lines that are not part of any other block are considered a - "plain" block, as are individual lines of text that are not inside of a - preformatted text block. - Plain blocks are not bound by styling directives and do not imply - formatting themselves, but they may contain spans which imply - formatting. -

- - ((There are four blocks in this body marked by parens,) - (but there is no *formatting) - (as spans* may not escape blocks.)) - -]]> -
- -

- A preformatted text block is started by a line beginning with "```" - (U+0060 GRAVE ACCENT), and ended by a line containing only three grave - accents or the end of the parent block (whichever comes first). - Preformatted text blocks cannot contain child blocks and other styling - MUST NOT be rendered inside the block. - Text inside a preformatted block SHOULD be displayed in a monospace font. -

- - ```ignored - (println "Hello, world!") - ``` - - This should show up as monospace, preformatted text ⤴ - -]]> - - > ``` - > (println "Hello, world!") - - The entire blockquote is a preformatted text block, but this line is - plaintext! - -]]> -
- -

- A quotation is indicated by one or more lines with a byte stream - beginning with a '>' (U+003E GREATER-THAN SIGN). - Block quotes may contain any child block, including other quotations. - Lines inside the block quote MUST have leading spaces trimmed before - parsing the child block. - It is RECOMMENDED that text inside of a block quote be indented or - distinguished from the surrounding text in some other way. -

- - > That that is, is. - - Said the old hermit of Prague. - -]]> - - >> That that is, is. - > Said the old hermit of Prague. - - Who? - ]]>