MCPcopy Create free account
hub / github.com/fontsource/fontsource / renderPackageManagerCode

Function renderPackageManagerCode

website/app/utils/docs/markdown.server.ts:29–35  ·  view source on GitHub ↗
({ attributes }: PlaceholderData)

Source from the content-addressed store, hash-verified

27 [`${markdownFence}${language}`, code, markdownFence].join('\n');
28
29const renderPackageManagerCode = ({ attributes }: PlaceholderData) => {
30 const cmd = attributes.cmd;
31
32 return typeof cmd === 'string'
33 ? renderMarkdownCodeBlock('sh', getPackageManagerCommandBlock(cmd))
34 : '';
35};
36
37const normalizeProcessedMarkdown = (markdown: string) =>
38 renderPlaceholder(markdown.trimStart(), {

Callers

nothing calls this directly

Calls 2

renderMarkdownCodeBlockFunction · 0.85

Tested by

no test coverage detected