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

Function renderMarkdownCodeBlock

website/app/utils/docs/markdown.server.ts:26–27  ·  view source on GitHub ↗
(language: string, code: string)

Source from the content-addressed store, hash-verified

24const markdownFence = '```';
25
26const renderMarkdownCodeBlock = (language: string, code: string) =>
27 [`${markdownFence}${language}`, code, markdownFence].join('\n');
28
29const renderPackageManagerCode = ({ attributes }: PlaceholderData) => {
30 const cmd = attributes.cmd;

Callers 1

renderPackageManagerCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected