FIX: Scope a[href] detection to post (#43)

Corrects typo in a37e4bf266cc2952156080ed3f269cd29f71bb6b
This commit is contained in:
David Taylor 2024-09-04 09:49:57 +01:00 committed by GitHub
parent a37e4bf266
commit 296864048a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -103,7 +103,7 @@ function performReplacements(cooked, placeholders) {
} }
// Handle a[href] attributes // Handle a[href] attributes
document.querySelectorAll("a[href]").forEach((link) => { cooked.querySelectorAll("a[href]").forEach((link) => {
const hrefAttr = link.attributes.getNamedItem("href"); const hrefAttr = link.attributes.getNamedItem("href");
if (!originalContentMap.has(hrefAttr)) { if (!originalContentMap.has(hrefAttr)) {