diff options
Diffstat (limited to 'js')
-rwxr-xr-x | js/bin/commonmark | 2 | ||||
-rwxr-xr-x | js/lib/index.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/js/bin/commonmark b/js/bin/commonmark index 72ad344..4fcb09d 100755 --- a/js/bin/commonmark +++ b/js/bin/commonmark @@ -16,7 +16,7 @@ for (var i = 2; i < process.argv.length; i++) { var arg = process.argv[i]; if (arg == '--ast') { renderer = { render: function(x) { - return util.inspect(x.toAST(), null, Infinity, true) + '\n'; + return util.inspect(x.toAST(), null, 20, true) + '\n'; } }; } else if (arg == '--sourcepos') { options.sourcepos = true; diff --git a/js/lib/index.js b/js/lib/index.js index f1023c1..8b26946 100755 --- a/js/lib/index.js +++ b/js/lib/index.js @@ -14,7 +14,7 @@ var util = require('util'); var renderAST = function(tree) { - return util.inspect(tree.toAST(), {depth: null}); + return util.inspect(tree.toAST(), {depth: 20}); }; module.exports.Node = require('./node'); |