summaryrefslogtreecommitdiff
path: root/js/bin/commonmark
diff options
context:
space:
mode:
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 527e118..3bd1079 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.toAST(), null, 20, true) + '\n';
+ return util.inspect(node.toObject(), null, 20, true) + '\n';
},
options: {} };
}