Roundup Tracker - Issues

Message7015

Author rouilj
Recipients ced, cmeerw, rouilj
Date 2020-10-29.22:08:19
Message-id <1604009299.47.0.521096050241.issue2551096@roundup.psfhosted.org>
In-reply-to
Hi Cedric:

Thanks for confirming my thoughts on how the matching code works.

We support multiple dialects of markdown the same way we support
multiple templating languages. Different dialects have different
features. In theory it is possible to override the import function in 
interfaces.py so a site could use a custom configuration of one
of the markdown back ends with the features/plugins they need.

Yup testing the common subset is a pain because the language isn't 
specified in a way that maps input to output. Ideally every markdown 
implementation would produce the same html. But ...

Testing the output from the markdown process allows us to verify
that the processing pipeline is producing expected html for
presentation to the user. But it is a pain.

Regarding email, have you looked at what markdown2 emits? Mistune
puts out:

  &lt;a href="mailto:user@example.com"&gt;user@example.com&lt;/a&gt;

while markdown2 seems to have an ever changing set of entities:

  href="&#x6d;&#97;&#x69; ..."

and sometimes they throw in actual characters.

markdown uses decimal entities and is the same from run to run.

So yeah you have convinced me that validating the email matching
path is more trouble than it's worth.
History
Date User Action Args
2020-10-29 22:08:19rouiljsetmessageid: <1604009299.47.0.521096050241.issue2551096@roundup.psfhosted.org>
2020-10-29 22:08:19rouiljsetrecipients: + rouilj, cmeerw, ced
2020-10-29 22:08:19rouiljlinkissue2551096 messages
2020-10-29 22:08:19rouiljcreate