Harden rendered markdown links

This commit is contained in:
Rūdolfs Ošiņš
2026-05-28 16:16:41 +02:00
parent 747d9b05f9
commit 17cd7adcb8
2 changed files with 11 additions and 5 deletions
+1
View File
@@ -129,6 +129,7 @@
const url = new URL(e.href);
if (url.origin !== window.origin) {
e.target = "_blank";
e.rel = "noopener noreferrer";
}
} catch (e) {
console.warn("Not able to parse url", e);