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

Corrects typo in a37e4bf266
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
1 changed files with 1 additions and 1 deletions

View File

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