diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-01-11 20:28:05 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-01-11 20:28:05 -0800 |
commit | a17a86cbcfb2a4775638c00bca83e54d4ee5f30f (patch) | |
tree | ee2acf0baa044643ba0d4a3d22aa72fcf2914b76 /js/bin/commonmark | |
parent | d307c3eb1b9ff81d929755ac293ad50ef49c6a74 (diff) |
node.js: toAST -> toObject.
Diffstat (limited to 'js/bin/commonmark')
-rwxr-xr-x | js/bin/commonmark | 2 |
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: {} }; } |