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

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Mekk
Regular
Posts: 54
Joined: Tue Jul 22, 2008 7:53 pm
Contact:

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

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

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

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Mekk
Regular
Posts: 54
Joined: Tue Jul 22, 2008 7:53 pm
Contact:

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

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

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

Post by garvinhicking »

Hi!

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

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Mekk
Regular
Posts: 54
Joined: Tue Jul 22, 2008 7:53 pm
Contact:

Post 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" ;-)
Mekk
Regular
Posts: 54
Joined: Tue Jul 22, 2008 7:53 pm
Contact:

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

Post 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.
Post Reply