「to」フィールドのない「Mailto」リンクが削除される

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

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

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

「いいね!」 2

おそらく当社のサニタイザーに関連していると思われます。セキュリティ上の懸念から除去を行っているのでしょうが、やや過剰かもしれません。

ここでの修正には賛成ですが、非常に非常に難易度が高いでしょう。

「いいね!」 3

これに対する回避策はありますか?HTML として記述しても何も変わらないことに気づきました。

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

charlie