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

Function persistCSS

packages/markmap-common/src/html.ts:82–92  ·  view source on GitHub ↗
(items: CSSItem[])

Source from the content-addressed store, hash-verified

80}
81
82export function persistCSS(items: CSSItem[]): string[] {
83 return items.map((item) => {
84 if (item.type === 'stylesheet') {
85 return wrapHtml('link', null, {
86 rel: 'stylesheet',
87 ...item.data,
88 });
89 }
90 /* else if (item.type === 'style') */ return wrapHtml('style', item.data);
91 });
92}

Callers 1

fillTemplateFunction · 0.90

Calls 1

wrapHtmlFunction · 0.85

Tested by

no test coverage detected