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

Function parse

spec/marktest/index.ts:26–29  ·  view source on GitHub ↗
(content: string, slots?: boolean, file?: string)

Source from the content-addressed store, hash-verified

24});
25
26function parse(content: string, slots?: boolean, file?: string) {
27 const tokens = tokenizer.tokenize(content);
28 return markdoc.parse(tokens, { file, slots });
29}
30
31function stripLines(object) {
32 const removeLines = (key, value) => (key === '$$lines' ? undefined : value);

Callers 2

renderFunction · 0.70
index.tsFile · 0.70

Calls 1

tokenizeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…