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)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
allura:db/5358b