summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-12 09:32:33 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-12 09:32:33 -0800
commit307e453041f59ae1b18196865d85a4d64e9c8981 (patch)
treec8e1a68ad404e5b3b1995ad52f5cf3f628763a5c /js
parentc3f1328c3b44e69fafc049e230ba4c09fae40e8c (diff)
js/bench.js: use capital letter for Showdown so eslint doesn't complain.
Diffstat (limited to 'js')
-rw-r--r--js/bench.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/bench.js b/js/bench.js
index a5e0d91..d1e3384 100644
--- a/js/bench.js
+++ b/js/bench.js
@@ -3,7 +3,7 @@ var suite = new Benchmark.Suite();
var fs = require('fs');
var sm = require('./lib/index.js');
// npm install showdown
-var showdown = require('showdown');
+var Showdown = require('showdown').converter;
// npm install marked
var marked = require('marked');
// npm install markdown-it
@@ -22,7 +22,7 @@ suite.add('commonmark.js markdown->html', function() {
.add('showdown.js markdown->html', function() {
"use strict";
- var converter = new showdown.converter();
+ var converter = new Showdown();
converter.makeHtml(contents);
})