MCPcopy Create free account
hub / github.com/backnotprop/plannotator / rewriteStyleContent

Function rewriteStyleContent

packages/shared/html-assets.ts:180–186  ·  view source on GitHub ↗
(node: HtmlNode, assetUrlFor: HtmlAssetUrlMapper)

Source from the content-addressed store, hash-verified

178}
179
180function rewriteStyleContent(node: HtmlNode, assetUrlFor: HtmlAssetUrlMapper): void {
181 for (const child of node.childNodes ?? []) {
182 if (typeof child.value === "string") {
183 child.value = rewriteCssAssetReferences(child.value, assetUrlFor);
184 }
185 }
186}
187
188function isSupportLink(node: HtmlNode): boolean {
189 const rel = attrValue(node, "rel");

Callers 1

Calls 1

Tested by

no test coverage detected