albert said:
I would consider spaces before a header tag to be invalid syntax and that new parser correctly ignores that case. Is there ever a legitimate case for that?
The nested bold tags and wiki links are, uh, interesting. I think I understand what's going on there and can probably fix it.
The spaces before the headers are used primarily in the help:wiki to keep the DText renderer from acting on it, so that the proper DText syntax can be shown.
Unfortunately, the [code] label adds the "<pre>" html label which seems to do some additional text formatting, which is why it isn't used on that wiki page.
For the following, click Quote to see the actual DText being used.
Example with [code]:
[b]Bold Text[/b]
Example with interleaving of [b] labels:
[b]Bold Text[/b]
Would it be possible to have something like a [nodtext] label that does no processing on the internal text, yet also doesn't add additional HTML labels like the [code] label does?
Just for reference, I've had to use the interleaved [b] labels quite a few times, especially when demonstrating how to use DText to a new user.