summaryrefslogtreecommitdiff
path: root/js/README.md
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-15 23:12:01 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-15 23:12:01 -0800
commit2107a56d58990788cfc40c1ba78e6247d1c4b088 (patch)
treeea24f3a38639222050e385ad027cea201e1b37b1 /js/README.md
parent9a1291b4d751d8533a56911d41b2596fa95eaf85 (diff)
README.md: refer to js/README.md for details on JS implementation.
Diffstat (limited to 'js/README.md')
-rw-r--r--js/README.md16
1 files changed, 15 insertions, 1 deletions
diff --git a/js/README.md b/js/README.md
index 6803754..0d5cf13 100644
--- a/js/README.md
+++ b/js/README.md
@@ -27,6 +27,20 @@ a standalone JavaScript file `js/commonmark.js`,
suitable for linking into a web page, or just fetch
<http://spec.commonmark.org/js/commonmark.js>.
+To run tests for the JavaScript library:
+
+ make testjs
+
+To run benchmarks against some other JavaScript converters:
+
+ npm install showdown marked markdown-it
+ make benchjs
+
+To start an interactive dingus that you can use to try out
+the library:
+
+ make dingus
+
Usage
-----
@@ -34,7 +48,7 @@ Instead of converting Markdown directly to HTML, as most converters
do, `commonmark.js` parses Markdown to an AST (abstract syntax tree),
and then renders this AST as HTML. This opens up the possibility of
manipulating the AST between parsing and rendering. For example, one
-could transform all emphasis into ALL CAPS.
+could transform emphasis into ALL CAPS.
Here's a basic usage example: