On Fri, Aug 18, 2006 at 05:55:45PM +0200, Steve Bennett wrote:
On 8/18/06, Steve Bennett stevage@gmail.com wrote:
Heh. Are we going to put that in the formal grammar?
Oh, it gets better. Ok, here's a test for everyone. Without actually testing these, predict how each of the following will be parsed:
*http://%5B%5Bfoo%5D%5D.com *http://www.%5B%5Bfoo%5D%5D.com *[[http://foo.com]] *[[the site http://foo.com is cool]] *[[http://foo.com is cool]] *[[foo http://foo.com]] *[[ http://foo.com]] *[[http://foo.com ]]
I very strongly suspect that no one who hasn't lived intimately with the parser code (that's, what, 4 or 5 people? :-) could predict what those things would do; they all seem implementation defined to me.
Or almost all...
They do illustrate why making a late pass to hotlink URLs might not be a safe approach, though.
Cheers, -- jra