From 3ec699716c8448727df43bbd4d847cfbaa37017d Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 24 Oct 2014 20:31:41 -0700 Subject: Renamed javascript implementation to commonmark.js. --- Makefile | 10 +++++----- README.md | 9 ++++----- js/index.html | 12 ++++++------ narrative.md | 2 +- 4 files changed, 16 insertions(+), 17 deletions(-) diff --git a/Makefile b/Makefile index 0e14161..d297b35 100644 --- a/Makefile +++ b/Makefile @@ -32,8 +32,8 @@ spec.pdf: spec.md template.tex specfilter.hs test: spec.txt perl runtests.pl $< $(PROG) -js/stmd.js: js/lib/index.js ${JSMODULES} - browserify --standalone stmd $< -o $@ +js/commonmark.js: js/lib/index.js ${JSMODULES} + browserify --standalone commonmark $< -o $@ testjs: spec.txt node js/test.js @@ -62,7 +62,7 @@ $(SRCDIR)/html/html_unescape.h: $(SRCDIR)/html/html_unescape.gperf .PHONY: leakcheck clean fuzztest dingus upload jshint test testjs benchjs -dingus: js/stmd.js +dingus: js/commonmark.js cd js && echo "Starting dingus server at http://localhost:9000" && python -m SimpleHTTPServer 9000 leakcheck: $(PROG) @@ -75,7 +75,7 @@ fuzztest: for i in `seq 1 10`; do \ time cat /dev/urandom | head -c 100000 | iconv -f latin1 -t utf-8 | $(PROG) >/dev/null; done -update-site: spec.html narrative.html js/stmd.js +update-site: spec.html narrative.html js/commonmark.js cp spec.html _site/ cp narrative.html _site/index.html cp -r js/* _site/js/ @@ -83,7 +83,7 @@ update-site: spec.html narrative.html js/stmd.js clean: -rm -f test $(SRCDIR)/*.o $(SRCDIR)/scanners.c $(SRCDIR)/html/*.o - -rm js/stmd.js + -rm js/commonmark.js -rm -rf *.dSYM -rm -f README.html -rm -f spec.md fuzz.txt spec.html diff --git a/README.md b/README.md index 447e9b8..c618ad8 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,7 @@ CommonMark ========== CommonMark is a [specification of Markdown syntax][the spec], -together with BSD3-licensed implementations (`cmark`) in C and -JavaScript. +together with BSD3-licensed implementations in C and JavaScript. The implementations ------------------- @@ -23,8 +22,8 @@ tarball.) The JavaScript implementation is a single JavaScript file, with no dependencies, that can be linked to in an HTML page. (To build, -it, do `make js/stmd.js`---this requires `browserify`, which you can -get using `npm install -g browserify`.) A command-line +it, do `make js/commonmark.js`---this requires `browserify`, which you +can get using `npm install -g browserify`.) A command-line version (using `node.js`) is also provided (`js/bin/markdown`), and there is a "dingus" for playing with it interactively. (`make dingus` will start this.) @@ -40,7 +39,7 @@ sanitizer to protect against [The spec] contains over 450 embedded examples which serve as conformance tests. To run the tests for `cmark`, do `make test`. To run them for another Markdown program, say `myprog`, do `make test PROG=myprog`. To -run the tests for `stmd.js`, do `make testjs`. +run the tests for `commonmark.js`, do `make testjs`. [The spec]: http://jgm.github.io/stmd/spec.html diff --git a/js/index.html b/js/index.html index fdd6a76..01afef2 100644 --- a/js/index.html +++ b/js/index.html @@ -2,15 +2,15 @@ - stmd.js demo + commonmark.js demo - +