I just recently submitted an answer written in the new editor that contained an email:
xxx@yyy.com
After I posted it, I clicked 'edit', switched to rich text mode, made some changes and submitted my edits. However, the email became a link:
mailto:xxx@yyy.com
When I use the old editor this doesn't happen, so I suppose this is a bug.
Note that I can't even remove mailto
in the new editor... I can only remove it by switching back to CommonMark mode.
Only HTTP and HTTPS links are allowed in posts (along with relative and protocol-relative URLs), and using other types of links (other protocols such as mailto
along with relative fragments) will result in the link being stripped out.
linkify
option set totrue
(default isfalse
). This option uses the linkify-it library (ref) that converts emails to links by default (ref).markdown-parser.test.ts
indicate that developers are indeed aware of this particular auto-linking behaviour.mailto
links are allowed within Teams and the feature is intended to be available for users there.mailto:abc@example.com
will be linked,abc@example.com
will not.