Originally created by: nijel
News import breaks links with underscore by escaping them. For example the correct link http://www.phpmyadmin.net/home_page/security/ will be turned into http://www.phpmyadmin.net/home_page/security/
We could fix from either the conversion side (the escape isn't strictly necessary here; need to add precise escaping rules into html2text) or on the rendering side (an escape shouldn't have to disrupt the autolink)
allura:db/5358 Try to think of a way this can break. I'd rather not have it bypass some escaping, but I believe it is still safe.
This needs further work - it breaks links like [text](http://example.com)
I think this should be a Preprocessor that wraps the URL with <> chars (which have no problem containing escaped chars), instead of inline pattern. That should clean up the escaping issues.
Probably doesn't help the breakage situation though.
Preprocessor doesn't work because it won't know the URL is inside of a literal or pre-formatted block.
Log in to post a comment.