diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2015-01-11 14:50:12 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2015-01-11 14:50:12 -0800 |
commit | 11a7287be0f5040f4cff4415466d04604b7b5015 (patch) | |
tree | bbb74f6341c425bba9ab4c432baae89169a83c3e /js/lib | |
parent | 3c35be821183a4f38bfd4d2feea4a8a215559b1d (diff) |
Removed JS library's dependency on util.
This reduces js/commonmark.js size by 20K.
Diffstat (limited to 'js/lib')
-rwxr-xr-x | js/lib/index.js | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/js/lib/index.js b/js/lib/index.js index b309311..05c7b72 100755 --- a/js/lib/index.js +++ b/js/lib/index.js @@ -11,18 +11,7 @@ "use strict"; -var util = require('util'); - module.exports.Node = require('./node'); module.exports.DocParser = require('./blocks'); module.exports.HtmlRenderer = require('./html'); module.exports.XMLRenderer = require('./xml'); -module.exports.ASTRenderer = function(options) { - return { - render: function(tree) { - return util.inspect(tree.toAST(), null, 20, - this.options.colors) + '\n'; - }, - options: options || {} - }; -} |