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

Function parse

index.ts:43–49  ·  view source on GitHub ↗
(
  content: string | Token[],
  args?: string | ParserArgs
)

Source from the content-addressed store, hash-verified

41}
42
43export function parse(
44 content: string | Token[],
45 args?: string | ParserArgs
46): Node {
47 if (typeof content === 'string') content = tokenizer.tokenize(content);
48 return parser(content, args);
49}
50
51export function resolve<C extends Config = Config>(
52 content: Node,

Callers

nothing calls this directly

Calls 2

parserFunction · 0.85
tokenizeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…