[kramdown-users] url-encoding feature suggestion

Thomas Leitner t_leitner at gmx.at
Sat Dec 17 03:33:19 EST 2011

On 2011-08-18 07:52 -0700 Matt Neuburg wrote:
> Wouldn't it be cool if kramdown would do URL-encoding? For example,
> suppose I put this (the URL being copied out of my browser - I hope
> this comes through the email):
>   [A town in Slovakia](http://en.wikipedia.org/wiki/Košice)
> The result is:
>   <a href="http://en.wikipedia.org/wiki/Košice">A town in Slovakia</a>
> But it should be URL-encoded:
>   <a href="http://en.wikipedia.org/wiki/Kos%CC%8Cice">A town in
> Slovakia</a>
> I can fix this in my own post-processing in RubyFrontier, of course,
> but I suggest that having kramdown perform the URL-encoding itself
> would be a cool feature. m.

I have looked a bit around and it seems that no other markup processor
does this. The problem is: How to detect an already correctly encoded
URL? This is not possible, I think, and therefore kramdown has to
assume that the URLs are already nicely encoded.

Best regards,

More information about the kramdown-users mailing list