00820: Unintuitive apply=block behavior
Description: When applying a style to a block, intuitively the following three examples should behave the same:
%red apply=block% (style followed by newline) %red apply=block% (style followed by space and newline) %red apply=block% (documented syntax)
(style followed by newline)
(style followed by space and newline)
The second and third examples will produce red text; the first will not, but it appears identical to the second. One would expect the first example to be interpreted as:
<p> (style followed by newline) </p>
Block styles become more awkward when applied to lists. To me, the most reasonable syntax is:
%red apply=block% * a * b
* %red apply=block% * a (note the space ^) * b
* %red apply=block% a * b
which obscures the first list item and implies the style is applied to the first item, not the whole list. Interestingly, in these examples the block style is applied to both the <ul> and the first <li>, e.g.
<ul style='color: red;'><li style='color: red;'> a
Agreed that the style+space and style on a line-by-itself ought to do the same thing.
In the case of apply=block, it's designed such that it applies to the block that the wikistyle is in, not to the block that follows. Thus, putting
%red apply=block% on a non-list line means the block isn't the list.
In order to get a wikistyle to apply to a single item, use
apply=item (or even just