From 86c34d69c79363bf5dc044e715405f387b11bbfc Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 16 Jan 2015 18:49:16 -0800 Subject: bin/commonmark: don't use the now-removed toObject for --ast. --- js/bin/commonmark | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/bin/commonmark') diff --git a/js/bin/commonmark b/js/bin/commonmark index 3bd1079..f6e630b 100755 --- a/js/bin/commonmark +++ b/js/bin/commonmark @@ -39,7 +39,7 @@ if (format === 'html') { renderer = new commonmark.XmlRenderer(options); } else if (format === 'ast') { renderer = { render: function(node) { - return util.inspect(node.toObject(), null, 20, true) + '\n'; + return util.inspect(node, null, 20, true) + '\n'; }, options: {} }; } -- cgit v1.2.3