MCPcopy
hub / github.com/markdoc/markdoc / format

Function format

src/formatter.ts:502–506  ·  view source on GitHub ↗
(v: Value | Value[], options?: Options)

Source from the content-addressed store, hash-verified

500}
501
502export default function format(v: Value | Value[], options?: Options): string {
503 let doc = '';
504 for (const s of formatValue(v, options)) doc += s;
505 return doc.trimStart();
506}

Callers 4

formatScalarFunction · 0.85
formatNodeFunction · 0.85
checkFunction · 0.85
formatter.test.tsFile · 0.85

Calls 1

formatValueFunction · 0.85

Tested by 1

checkFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…