| 1 |
# Test data |
| 2 |
|
| 3 |
## CommonMark JSON test suites |
| 4 |
|
| 5 |
The `cmark.tests.json` and `github.tests.json` files are licenced under |
| 6 |
[](http://creativecommons.org/licenses/by-sa/4.0/). |
| 7 |
|
| 8 |
Their source can be found respectively at the |
| 9 |
[CommonMark Spec website](https://spec.commonmark.org/) and the |
| 10 |
[GitHub Flavored Markdown Spec website](https://github.github.com/gfm/). |
| 11 |
|
| 12 |
The JSON files are generated with: |
| 13 |
|
| 14 |
third_party/commonmark-spec/test/spec_tests.py --dump-tests --spec third_party/commonmark-spec/spec.txt > t/data/cmark.tests.json |
| 15 |
third_party/cmark-gfm/test/spec_tests.py --dump-tests --spec third_party/cmark-gfm/test/spec.txt > t/data/github.tests.json |
| 16 |
|
| 17 |
But first, the examples that are annotated with `example disabled` in the |
| 18 |
cmark-gfm spec.txt file are renamed just `example` (otherwise they are skipped |
| 19 |
from the output). Note that the cmark-gfm file needs to be processed with the |
| 20 |
`spec_text.py` tool from the same repository, otherwise some tests are empty. |