aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xjs/bin/commonmark2
1 files changed, 1 insertions, 1 deletions
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: {} };
}