MCPcopy
hub / github.com/markdoc/markdoc / resolve

Function resolve

index.ts:59–67  ·  view source on GitHub ↗
(
  content: any,
  config: C
)

Source from the content-addressed store, hash-verified

57 config: C
58): Node[];
59export function resolve<C extends Config = Config>(
60 content: any,
61 config: C
62): any {
63 if (Array.isArray(content))
64 return content.flatMap((child) => child.resolve(config));
65
66 return content.resolve(config);
67}
68
69export function transform<C extends Config = Config>(
70 node: Node,

Callers 2

transformFunction · 0.70
MarkdocClass · 0.70

Calls 1

resolveMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…