From 4b50ff9f59335728e32cf34cbab69f77416b11a0 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Thu, 12 May 2022 14:26:39 +0200 Subject: [PATCH] Resolve #366 --- dev/Common/Html.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dev/Common/Html.js b/dev/Common/Html.js index 3fbbf4064..7eb1993da 100644 --- a/dev/Common/Html.js +++ b/dev/Common/Html.js @@ -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