summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-09 19:20:49 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-09 19:20:49 -0800
commit65059ef600773928a6c9b9c96657a541a6286650 (patch)
tree30bb45bf77cbdca202d9d56359b4729bae0c5a57
parent1a034acee13576bc252ef1ca3f91d0d35ba9a85e (diff)
Updated dingus.
-rw-r--r--Makefile2
-rw-r--r--dingus.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b1235ea..1a7b98d 100644
--- a/Makefile
+++ b/Makefile
@@ -177,7 +177,7 @@ npm:
cd js; npm publish
dingus: js/commonmark.js
- echo "Starting dingus server at http://localhost:9000" && python -m SimpleHTTPServer 9000
+ echo "Starting dingus server at http://localhost:9000/dingus.html" && python -m SimpleHTTPServer 9000
### Spec ###
diff --git a/dingus.html b/dingus.html
index 40664d2..6b379eb 100644
--- a/dingus.html
+++ b/dingus.html
@@ -52,7 +52,7 @@ $(document).ready(function() {
return;
}
var startTime = new Date().getTime();
- var result = writer.renderBlock(parsed);
+ var result = writer.render(parsed);
var endTime = new Date().getTime();
var renderTime = endTime - startTime;
$("#preview").html(result);