I have a bug and a workaround for you, all in one.
The bug is this: if you 'skip' levels when creating bulleted or numbered lists in the raw editor, you get a dot or number at each level.
For instance, typing
1 Item 2
- Item 2
The reason for this is that instead of directly nesting <ol> or <ul> tags to indent the list, like so:
it inserts a <li> tag after every <ol> or <ul> tag, like so:
The solution I've come up with is very straightforward, but is admittedly a hack: in one of the postRenderingHandler subs, place the following:
$_ =~ s:(<[ou]l>)\s*<li>\s*\1:$1 $1:gsi;
The more elegant solution, of course, would be to figure out where in the code it's generating these extra <li> tags and test for multiple indentations there.
- 07 Mar 2009