Your message dated Mon, 29 Feb 2016 21:47:43 +0300
with message-id <[email protected]>
and subject line Re: email link encoded twice
has caused the Debian Bug report #816218,
regarding mailto: URLs are html-encoded
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
816218: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=816218
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-markdown
Version: 2.6.5-2
Severity: normal

Hello,

thank you for maintaining markdown.

I have noticed that rendering email links generates a rather overquoted
href:

$ python3
Python 3.5.1+ (default, Jan 13 2016, 15:09:18) 
[GCC 5.3.1 20160101] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import markdown
>>> markdown.markdown("<[email protected]>")
'<p><a 
href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#116;&#101;&#115;&#116;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#111;&#114;&#103;">&#116;&#101;&#115;&#116;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#111;&#114;&#103;</a></p>'
>>> 

Chromium opens it correctly, so I wonder if this is just some antispam
measure. However, chromium opens it correctly, so I'm not sure it is
really useful as an antispam measure.

Looking at AutomailPattern's implementation in inlinepatterns.py it
seems intentional, and I think it should at least be documented, and, if
possible, configurable.

This is making it rather complicated for me to postprocess <a> links in
the markdown ElementTree.


Thank you,

Enrico


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python-markdown depends on:
pn  python:any  <none>

Versions of packages python-markdown recommends:
ii  python-pygments  2.1+dfsg-1
ii  python-yaml      3.11-3

Versions of packages python-markdown suggests:
pn  python-markdown-doc  <none>

-- no debconf information

--- End Message ---
--- Begin Message ---
Control: forwarded -1 https://github.com/waylan/Python-Markdown/issues/456
Control: tags -1 wontfix

Hi Enrico,

On Sun, 28 Feb 2016 21:43:28 +0100, Enrico Zini wrote:
> I have noticed that rendering email links generates a rather overquoted
> href

Let me quote the upstream developer's response:

  This is an often overlooked requirement of the Markdown syntax rules [1].
  I realize that it actually does little to avoid spam, but it is required by
  the rules and therefore I will not consider removing it. If users prefer,
  they can always override/change the default behavior with an extension.
  However, to offer anything except this as the default behavior would be a
  bug.

  [1]: http://daringfireball.net/projects/markdown/syntax#autolink

So I think it can be considered wontfix (obviously I don't want to divert the
Debian package from upstream).

--
Dmitry Shachnev

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to