[Standards] Need sanity check on an example in XEP-0393: Message Styling

Tedd Sterr teddsterr at outlook.com
Fri Nov 6 17:18:39 UTC 2020


Your very first rule is: "Spans MUST contain text between the two styling directives" which leads to '**' being unstyled.
The question is whether the middle asterisk in '***' counts as text (and by extension, multiple middle asterisks.)
Another rule is: "Spans are always parsed from the beginning of the byte stream to the end and are lazily matched" which means the first possible match is the correct one, leading to your example '*strong*plain*' - this is essentially the same as '***' but with intervening text, and the first rule requires that intervening text, so these are invalid directives (open followed immediately by close, without intervening text, followed by a dangling open.)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/standards/attachments/20201106/43351946/attachment.html>


More information about the Standards mailing list