This commit is contained in:
the-djmaze 2022-05-12 14:26:39 +02:00
parent c9e7087548
commit 4b50ff9f59

View file

@ -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