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

Function validateWithComments

src/transforms/table.test.ts:124–128  ·  view source on GitHub ↗
(string: string, config = {})

Source from the content-addressed store, hash-verified

122
123 it('does not produce errors for comments in a table', function () {
124 function validateWithComments(string: string, config = {}) {
125 const tokenizer = new Markdoc.Tokenizer({ allowComments: true });
126 const tokens = tokenizer.tokenize(string);
127 return Markdoc.validate(Markdoc.parse(tokens), config);
128 }
129 const input = `{% table %}
130* Heading 1
131* Heading 2

Callers 1

table.test.tsFile · 0.85

Calls 2

tokenizeMethod · 0.95
validateMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…