summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/bench.js2
-rwxr-xr-xjs/bin/markdown6
-rwxr-xr-xjs/lib/index.js8
-rwxr-xr-xjs/test.js6
4 files changed, 11 insertions, 11 deletions
diff --git a/js/bench.js b/js/bench.js
index ea68161..d068a7e 100644
--- a/js/bench.js
+++ b/js/bench.js
@@ -13,7 +13,7 @@ var contents = fs.readFileSync(benchfile, 'utf8');
// var converter = new showdown.converter();
-suite.add('stmd markdown->html', function() {
+suite.add('commonmark.js markdown->html', function() {
var doc = new sm.DocParser().parse(contents);
var renderer = new sm.HtmlRenderer();
renderer.renderBlock(doc);
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)));
});
diff --git a/js/lib/index.js b/js/lib/index.js
index cfb8bf9..d1f3577 100755
--- a/js/lib/index.js
+++ b/js/lib/index.js
@@ -1,12 +1,12 @@
-// stmd.js - CommomMark in JavaScript
+// commonmark.js - CommomMark in JavaScript
// Copyright (C) 2014 John MacFarlane
// License: BSD3.
// Basic usage:
//
-// var stmd = require('stmd');
-// var parser = new stmd.DocParser();
-// var renderer = new stmd.HtmlRenderer();
+// var commonmark = require('commonmark');
+// var parser = new commonmark.DocParser();
+// var renderer = new commonmark.HtmlRenderer();
// console.log(renderer.render(parser.parse('Hello *world*')));
var util = require('util');
diff --git a/js/test.js b/js/test.js
index 697d6fe..25dea86 100755
--- a/js/test.js
+++ b/js/test.js
@@ -1,12 +1,12 @@
#!/usr/bin/env node
var fs = require('fs');
-var stmd = require('./lib/index.js');
+var commonmark = require('./lib/index.js');
var ansi = require('./ansi/ansi');
var cursor = ansi(process.stdout);
-var writer = new stmd.HtmlRenderer();
-var reader = new stmd.DocParser();
+var writer = new commonmark.HtmlRenderer();
+var reader = new commonmark.DocParser();
var passed = 0;
var failed = 0;