In __init__.py, modify line 459 from self.o("]({url}{title})".format(url=escape_md(url), title=title)) toself.o("]({url}{title})".format(url=url, title=title)); I don't know Markdown specs well enough but after trying a few markdown readers, the lack of escaping inside a URL doesn't seem to break anything -- even with the stray extra ")"
Add a switch to suppress Markdown escaping in URLs (new use case, slower code)
html2text
is emailedSteps to reproduce:
a
tag with anhref
containing a parenthesis, e.g. to https://www.sample.com/?url-with-(parenthesized-text)-)-[and-brackets]html2text
(see code below)[](https://www.sample.com/?url-with-\(parenthesized-text\)-\)\[and-brackets\])
Potential solutions:
__init__.py
, modify line 459 fromself.o("]({url}{title})".format(url=escape_md(url), title=title))
toself.o("]({url}{title})".format(url=url, title=title))
; I don't know Markdown specs well enough but after trying a few markdown readers, the lack of escaping inside a URL doesn't seem to break anything -- even with the stray extra ")"Any tips/feedback?
Code: