FIX: Scope `a[href]` detection to post (#43)
Corrects typo in a37e4bf266
This commit is contained in:
parent
a37e4bf266
commit
296864048a
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue