From 2107a56d58990788cfc40c1ba78e6247d1c4b088 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 15 Jan 2015 23:12:01 -0800 Subject: README.md: refer to js/README.md for details on JS implementation. --- js/README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'js/README.md') 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 . +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: -- cgit v1.2.3