MCPcopy Create free account
hub / github.com/markdoc/markdoc / validate

Function validate

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

Source from the content-addressed store, hash-verified

1import Markdoc from '../../index';
2
3function validate(string: string, config = {}) {
4 return Markdoc.validate(Markdoc.parse(string), config);
5}
6
7describe('table transform validation', function () {
8 it('produces an error for non-row content at the row level of a table', function () {

Callers 1

table.test.tsFile · 0.70

Calls 1

validateMethod · 0.65

Tested by

no test coverage detected