1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-21 16:55:07 -05:00

XEP-0393: simplify block parsing

This commit is contained in:
Sam Whited 2018-02-15 15:22:28 -06:00
parent 60df13b76d
commit 15faf862c6

View File

@ -25,6 +25,17 @@
<supersededby/>
<shortname>styling</shortname>
&sam;
<revision>
<version>0.1.3</version>
<date>2018-02-14</date>
<initials>ssw</initials>
<remark>
<p>
Reorder block and span sections, simplify block parsing, and update the
definition of a span.
</p>
</remark>
</revision>
<revision>
<version>0.1.2</version>
<date>2018-01-13</date>
@ -209,18 +220,18 @@
</p>
<section3 topic='Plain' anchor='line-block'>
<p>
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.
Individual lines of text that are not inside of a preformatted text
block are considered a "plain" block.
Plain blocks are not bound by styling directives and do not imply
formatting themselves, but they may contain spans which imply
formatting.
Plain blocks may not contain child blocks.
</p>
<example caption='Plain block text'><![CDATA[
<body>
((There are four blocks in this body marked by parens,)
(There are three blocks in this body marked by parens,)
(but there is no *formatting)
(as spans* may not escape blocks.))
(as spans* may not escape blocks.)
</body>
]]></example>
</section3>
@ -229,8 +240,7 @@
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.
Preformatted text blocks cannot contain child blocks or spans.
Text inside a preformatted block SHOULD be displayed in a monospace font.
</p>
<example caption='Preformatted block text'><![CDATA[
@ -247,8 +257,8 @@
&gt; ```
&gt; (println &quot;Hello, world!&quot;)
The entire blockquote is a preformatted text block, but this line is
plaintext!
The entire blockquote is a preformatted text block, but this line
is plaintext!
</body>
]]></example>
</section3>