cmark

My personal build of CMark ✏️

Commit
307e453041f59ae1b18196865d85a4d64e9c8981
Parent
c3f1328c3b44e69fafc049e230ba4c09fae40e8c
Author
John MacFarlane <jgm@berkeley.edu>
Date

js/bench.js: use capital letter for Showdown so eslint doesn't complain.

Diffstat

1 file changed, 2 insertions, 2 deletions

Status File Name N° Changes Insertions Deletions
Modified js/bench.js 4 2 2
diff --git 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);
 })