summaryrefslogtreecommitdiff
path: root/js/bin/commonmark
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-16 18:49:16 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-16 18:49:16 -0800
commit86c34d69c79363bf5dc044e715405f387b11bbfc (patch)
treedd68a4e231dd3838037cd617e4166e5adc813dcb /js/bin/commonmark
parentc3d897c6c86607493004e0ccdc2c7436eba9e30e (diff)
bin/commonmark: don't use the now-removed toObject for --ast.
Diffstat (limited to 'js/bin/commonmark')
-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: {} };
}