jack2
24. Dezember 2019 um 18:15
1
This works correctly:
[my link](mailto:alice@alice.com&subject=Hi)
This doesn’t work (an empty <a>
tag is generated):
[my link](mailto:&subject=Hi)
The later formatting allows a user to send a message to whoever he wants. It is used in Discourse, for example, when sharing a post (see the code here ).
4 „Gefällt mir“
jack2
24. Dezember 2019 um 22:10
2
Same issue with the email
bbcode. This works correctly:
[email=alice@alice.com&subject=Hi]my link[/email]
But not this:
[email=&subject=Hi]my link[/email]
1 „Gefällt mir“
Falco
(Falco)
24. Dezember 2019 um 22:16
3
Weird it works on plain markdown-it and on commonmark dingus, so I guess it’s an spec violation.
2 „Gefällt mir“
sam
(Sam Saffron)
30. Dezember 2019 um 00:36
4
Most likely related to our sanitizer, I am guessing we are stripping due to a potential security issue. Maybe a bit too aggressively.
I support a fix here but it is likely to be very very tricky.
3 „Gefällt mir“
rosano
23. Mai 2021 um 13:05
5
Is there a workaround for this? I notice that writing as HTML doesn’t change anything.:
<a href="mailto:?subject=alfa&body=bravo">charlie</a>
charlie