(string: string, config = {})
| 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 |
no test coverage detected
searching dependent graphs…