Page 1 of 1

markdown + [autolinks][] + IE = problem (?)

Posted: Thu Jan 01, 2009 5:09 pm
by Mekk
I faced some strange issue. Hyperlinks embedded inside text display improperly in Internet Explorer (6&7) - there is no space after them.
So, for example

Visit [some link][] for more details

renders properly in Firefox, Opera and Chrome:

Visit some link for more details

but in IE turns into:

Visit some linkfor more details

It seems to me that the problem is caused by Markdown, which generates extra <span> elements:

<span>Visit</span> <a href="...">some link</a> <span>for more details</span>

What is amazing: [explicit links][namehere] are shown properly (and rendered without <span>)

Has anybody heard about this problem, have any suggestion?

PS See http://blog.mekk.waw.pl/archives/24-Noz ... -back.html for example. The link "XMind" on the beginning of the Installation chapter experiences the issue.

Re: markdown + [autolinks][] + IE = problem (?)

Posted: Thu Jan 01, 2009 6:05 pm
by garvinhicking
Hi!

Is this [link][] functionality part of Markdown?

Which event plugins do you have installed? In cases like these, the order might be significant. Text formatting plugins are executed in a "first in first out" queue order, and thus the prior one always affects the output of the next plugin.

Regards,
Garvin

Re: markdown + [autolinks][] + IE = problem (?)

Posted: Fri Jan 02, 2009 5:15 pm
by Mekk
garvinhicking wrote: Is this [link][] functionality part of Markdown?
Yes, one can write

[SomeName]: http://...
[OtherName]: http://....

and below use syntax like [SomeName][] to get links. Or
[some other text][SomeName].
Which event plugins do you have installed? In cases like these, the order might be significant. Text formatting plugins are executed in a "first in first out" queue order, and thus the prior one always affects the output of the next plugin.
Text may be touched by Geshi, Browser Compatibility (hmm, I probably don't need this one, forgot to check what it does) and Markdown (of course).

I mainly suspect markdown as such

Re: markdown + [autolinks][] + IE = problem (?)

Posted: Fri Jan 02, 2009 7:32 pm
by garvinhicking
Hi!

Did you try to disable Geshi and see if it works then?

Regards,
Garvin

Posted: Tue Jan 06, 2009 10:59 pm
by Mekk
After I disabled Geshi those extra <span>'s seem to be gone, at least in one place (still to make more detailed testing).

Still, links are shown incorrectly but this turns out to be a CSS issue. JOining "I hate IE club" ;-)

Solution: the problem was not serendipity/markdown/geshi rel

Posted: Fri Jan 09, 2009 12:30 pm
by Mekk
Just a note: the problem turned out to be unrelated to serendipity and it's components (and the note above is incorrect).

My links were spoiled by misbehaving text-link-ads script I used (Polish ads provider, activated on English blog by mistake). This script injects <span>'s around blocks of normal text.

Sorry for troubling you.

Lesson for myself: test visual problems with javascript disabled.