`<!DOCTYPE html><html><body>${highlight}</body></html>`,
"text/html",
).documentElement.lastChild.childNodes;
+ code.setAttribute(
+ "class",
+ `hljs ${code.getAttribute("class")}`,
+ );
code.textContent = "";
for (const node of Array.from(nodes)) {
code.appendChild(code.ownerDocument.importNode(node, true));
}
} else if (node.nodeType == 1) {
Array.from(node.childNodes).forEach(applyHighlighting);
+ } else if (node.nodeType == 3) {
+ node.textContent = node.textContent.replaceAll(":—", ":\u2060—");
}
};
processContent(metadata.summary);
};
+globalThis.bjørnTransformFeedHTML = (document, _metadata) => {
+ const LMN = Lemon.bind({ document });
+ const h1 = document.getElementsByTagNameNS(
+ "http://www.w3.org/1999/xhtml",
+ "h1",
+ )[0];
+ const link = LMN.a.href("/")``;
+ for (const child of Array.from(h1.childNodes)) {
+ link.appendChild(child);
+ }
+ h1.appendChild(link);
+};
+
await import(
- "https://git.ladys.computer/Beorn/blob_plain/0.2.1:/build.js"
+ "https://git.ladys.computer/Beorn/blob_plain/0.2.3:/build.js"
);