]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/markdown_bug:_email_escaping_and_plus_addresses.mdwn
patch to add tag() pagespec
[ikiwiki.git] / doc / bugs / markdown_bug:_email_escaping_and_plus_addresses.mdwn
1 compare:
2
3     * <jon+markdownbug@example.org>
4     * <jon.markdownbug@example.org>
5
6 * <jon+markdownbug@example.org>
7 * <jon.markdownbug@example.org>
8
9 It seems putting a '+' in there throws it. Maybe it's a markdown bug, or maybe the obfuscation markdown applies to email-links is being caught by the HTML sanitizer.
10
11  -- [[users/Jon]]
12
13 > It's a markdown bug. For some reason, markdown doesn't recognize the email with a '+' as an email:
14 >
15 >     $ echo '<a+b@c.org>' | markdown
16 >     <p><a+b@c.org></p>
17 >
18 > htmlscrubber then (rightly) removes this unknown tag.
19 >
20
21 >> Filed [in CPAN](http://rt.cpan.org/Ticket/Display.html?id=37909)
22 >> --[[Joey]] [[!tag done]]
23
24 > But I've noticed some other Text::Markdown bugs that, even with htmlscrubber, produce
25 > [ill-formed (X)HTML](http://validator.w3.org/check?uri=http%3A%2F%2Fikiwiki.info%2Fbugs%2Fmarkdown_bug%3A_email_escaping_and_plus_addresses%2F).
26 > (View the markdown source of this page.)
27 >
28 > --Gabriel
29
30 >> The htmlscrubber does not attempt to produce valid html from invalid. It
31 >> attempts to prevent exploits in html. The tidy plugin can force html to
32 >> valid. --[[Joey]]
33
34 <tt>
35
36
37 >