mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-10-04 10:54:21 +08:00
Resolve #366
This commit is contained in:
parent
c9e7087548
commit
4b50ff9f59
1 changed files with 3 additions and 1 deletions
|
@ -446,7 +446,9 @@ export const
|
|||
// Convert anchors
|
||||
forEach('a', a => {
|
||||
let txt = a.textContent, href = a.href;
|
||||
return a.replaceWith((txt.trim() == href ? txt : txt + ' ' + href + ' '));
|
||||
return a.replaceWith(
|
||||
txt.trim() == href || href.includes('mailto:') ? txt : txt + ' ' + href + ' '
|
||||
);
|
||||
});
|
||||
|
||||
// Bold
|
||||
|
|
Loading…
Add table
Reference in a new issue