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

Function convert

src/parser.test.ts:12–16  ·  view source on GitHub ↗
(example, options?)

Source from the content-addressed store, hash-verified

10 const tokenizer = new Tokenizer({ allowComments: true });
11
12 function convert(example, options?) {
13 const content = example.replace(/\n\s+/gm, '\n').trim();
14 const tokens = tokenizer.tokenize(content);
15 return parser(tokens, options);
16 }
17
18 describe('handling options', function () {
19 it('no args', function () {

Callers 1

parser.test.tsFile · 0.85

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…