mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-10-08 20:56:03 +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
|
// Convert anchors
|
||||||
forEach('a', a => {
|
forEach('a', a => {
|
||||||
let txt = a.textContent, href = a.href;
|
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
|
// Bold
|
||||||
|
|
Loading…
Add table
Reference in a new issue