MCPcopy Index your code
hub / github.com/markmap/markmap / patchCSSItem

Function patchCSSItem

packages/markmap-lib/src/util.ts:16–27  ·  view source on GitHub ↗
(urlBuilder: UrlBuilder, item: CSSItem)

Source from the content-addressed store, hash-verified

14}
15
16export function patchCSSItem(urlBuilder: UrlBuilder, item: CSSItem): CSSItem {
17 if (item.type === 'stylesheet' && item.data.href) {
18 return {
19 ...item,
20 data: {
21 ...item.data,
22 href: urlBuilder.getFullUrl(item.data.href),
23 },
24 };
25 }
26 return item;
27}

Callers 1

resolveCSSMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected