aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/README.md b/README.md
index f5ddd8a..be3e4ba 100644
--- a/README.md
+++ b/README.md
@@ -39,6 +39,21 @@ actually running the tests, you can do:
and you'll get all the tests in JSON format.
+JavaScript developers may find it more convenient to use the
+[`commonmark-spec` npm package], which is published from this
+repository. It exports an array `tests` of JSON objects with
+the format
+
+```json
+{
+ "markdown": "Foo\nBar\n---\n",
+ "html": "<h2>Foo\nBar</h2>\n",
+ "section": "Setext headings",
+ "number": 65
+}
+```
+
+[`commonmark-spec` npm package]: https://www.npmjs.com/package/commonmark-spec
The spec
--------