MCPcopy Index your code
hub / github.com/markdoc/markdoc / validate

Function validate

index.ts:93–99  ·  view source on GitHub ↗
(
  content: any,
  options?: C
)

Source from the content-addressed store, hash-verified

91 options?: C
92): ValidateError[];
93export function validate<C extends Config = Config>(
94 content: any,
95 options?: C
96): any {
97 const config = mergeConfig(options);
98 return validateTree(content, config);
99}
100
101export function createElement(
102 name: string | { key?: string | number },

Callers 1

MarkdocClass · 0.70

Calls 2

validateTreeFunction · 0.90
mergeConfigFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…