MCPcopy Create free account
hub / github.com/webpro-nl/knip / codeBlock

Function codeBlock

packages/docs/scripts/generate-plugin-docs.ts:14–14  ·  view source on GitHub ↗
(value: string, lang = '')

Source from the content-addressed store, hash-verified

12const srcBaseUrl = new URL('webpro-nl/knip/blob/main/packages/knip/src/plugins', 'https://github.com');
13
14const codeBlock = (value: string, lang = '') => `\`\`\`${lang}\n${value}\n\`\`\``;
15
16const looseList = (items: string[]) => items.map(item => `- ${item}`).join('\n\n');
17

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected