summaryrefslogtreecommitdiff
path: root/js/bin/markdown
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-10-24 20:43:02 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-10-24 20:43:02 -0700
commit7b952201086ac93716b7bb4ca8ac2b61237a033d (patch)
tree53e7d16076f0ccddce4a9083cf1bb1510d9da3aa /js/bin/markdown
parentad5cfa746e985a8261646af90fc9e25306b21c55 (diff)
More stmd -> commonmark changes.
Diffstat (limited to 'js/bin/markdown')
-rwxr-xr-xjs/bin/markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/bin/markdown b/js/bin/markdown
index 31b7ce4..37b0e52 100755
--- a/js/bin/markdown
+++ b/js/bin/markdown
@@ -1,7 +1,7 @@
#!/usr/bin/env node
var fs = require('fs');
var util = require('util');
-var stmd = require('../lib/index.js');
+var commonmark = require('../lib/index.js');
file = process.argv[2] || '/dev/stdin';
@@ -9,7 +9,7 @@ fs.readFile(file, 'utf8', function(err, data) {
if (err) {
return console.log(err);
}
- var parser = new stmd.DocParser();
- var renderer = new stmd.HtmlRenderer();
+ var parser = new commonmark.DocParser();
+ var renderer = new commonmark.HtmlRenderer();
process.stdout.write(renderer.render(parser.parse(data)));
});