MCPcopy Create free account
hub / github.com/react/react / wrapWithTripleBackticks

Function wrapWithTripleBackticks

compiler/packages/snap/src/reporter.ts:14–18  ·  view source on GitHub ↗
(s: string, ext: string | null = null)

Source from the content-addressed store, hash-verified

12import path from 'path';
13
14function wrapWithTripleBackticks(s: string, ext: string | null = null): string {
15 return `\`\`\`${ext ?? ''}
16${s}
17\`\`\``;
18}
19const SPROUT_SEPARATOR = '\n### Eval output\n';
20
21export function writeOutputToString(

Callers 1

writeOutputToStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected