On Fri, Nov 29, 2002 at 03:51:21PM +0100, Tomasz Wegrzanowski wrote:
I was trying to put Math parsing somewhere into
markup parsing. Because there is no way to protect math markup from
interpretation by Wiki, I had to put it before removeHTMLtags.
But then, removeHTMLtags breaks <img src="" alt=""> tag.
Even if I tell removeHTMLtags to accept IMG ALT and SRC,
replaceExternalLinks would kill url in src="".
Any ideas ?
Ah! Well, that's a different matter then.
Worst case, use a placeholder string; replace all math sections with the
placeholder, store them in a stack, then dump in the interpreted code
after user-supplied tags are dealt with. I believe some pass or another
currently works like this. Ugly, but...
Yes, we need to rewrite the parser sometime! Preferably something that
can guarantee well-formed XHTML, since we keep making noises about
MathML and SVG.
-- brion vibber (brion @ pobox.com