Les liens « Mailto » sans champ « to » sont supprimés

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 « J'aime »

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 « J'aime »

Weird it works on plain markdown-it and on commonmark dingus, so I guess it’s an spec violation.

2 « J'aime »

Très probablement lié à notre nettoyeur, je suppose que nous supprimons en raison d’un problème de sécurité potentiel. Peut-être un peu trop agressivement.

Je soutiens une correction ici, mais elle risque d’être très, très délicate.

3 « J'aime »

Y a-t-il une solution de contournement pour cela ? Je remarque que l’écriture en HTML ne change rien :

<a href="mailto:?subject=alfa&body=bravo">charlie</a>

charlie