[Kramdown-users] Broken mailto: obfuscation
Eric Sunshine
sunshine at sunshineco.com
Tue Nov 24 23:01:40 EST 2009
After digging further into the kramdown implementation, I see that the
corruption problem actually lies with the 'autolink' handling rather
than the email obfuscation code.
-- ES
Eric Sunshine wrote:
> Hi Thomas,
>
> Given the following Markdown input with embedded HTML:
>
> Mail: <a href="mailto:me at example.com?subject=Foo">My Name</a>
>
> kramdown's email obfuscation badly corrupts it to:
>
> <p>Mail: <a href="mailto:a &#
> 104;ref="mailto
> ;:me@example&#
> 046;com?subject
> ;=Foo"">a href
> ="mailto:me�
> 64;example.com
> ?subject=Fo
> 11;"</a>My Name</a></p>
>
> which renders in the browser literally as:
>
> Mail: [a href="mailto:me at example.com?subject=Foo"]My Name</a>
>
> I added the [ brackets ] to show the clickable portion of the rendered
> output. It should render as:
>
> Mail: [My Name]
>
> -- ES
> _______________________________________________
> Kramdown-users mailing list
> Kramdown-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/kramdown-users
>
More information about the Kramdown-users
mailing list