Function
parse
(content: string, slots?: boolean, file?: string)
Source from the content-addressed store, hash-verified
| 24 | }); |
| 25 | |
| 26 | function parse(content: string, slots?: boolean, file?: string) { |
| 27 | const tokens = tokenizer.tokenize(content); |
| 28 | return markdoc.parse(tokens, { file, slots }); |
| 29 | } |
| 30 | |
| 31 | function stripLines(object) { |
| 32 | const removeLines = (key, value) => (key === '$$lines' ? undefined : value); |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…