The extension's hooking point "ParserBeforeTidy" happens very late in the parsing of a page. So late, that at this point all interpretation of MW syntax has already occurred.
For this reason, my extension has no knowledge of <nowiki> delimiters and will go right through them.
Also, I do no processing for strings that contain tags. So this:
Hi *some bold <span> text*, more text </span>
Becomes this:
Hi <b>some bold <span> text</b>, more text </span>
And I have no idea what Tidy would do to that one (probably something very ugly).
So this is by no means a real actual solution. The "correct solution" (if you are of the party that thinks there's a problem in the first place) would be much more complicated and would need to hook into the Parser much more deeply - so much so that it may not even be possible given current Parser hooking points.
But it works in a pinch - and as long as everybody uses reasonable syntax, it should work just fine.
-- Jim
On 2/21/07, Jay R. Ashworth jra@baylink.com wrote:
On Wed, Feb 21, 2007 at 03:30:26PM -0600, Jim Wilson wrote:
Jay R. Ashworth wrote:
Since it's an extension, and the mainline is unlikely to load it,
could
you make it an install-time configurable option whether _this_ renders as italics or underscore?
Done deal. See the extension page for details on how to configure
(you'll
need to re-download the extension for the changes to take effect)
Well, Jim; y'know; I like you a lot. :-)
I have to upgrade my home MW to something reasonably current; I'll install this when I do.
How did you avoid the confusion everyone warns of with
- list
*item **marking?
Cheers,
-- jra
Jay R. Ashworth jra@baylink.com Designer Baylink RFC 2100 Ashworth & Associates The Things I Think '87 e24 St Petersburg FL USA http://baylink.pitas.com +1 727 647 1274
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l