cmark

My personal build of CMark ✏️

Commit
86c34d69c79363bf5dc044e715405f387b11bbfc
Parent
c3d897c6c86607493004e0ccdc2c7436eba9e30e
Author
John MacFarlane <jgm@berkeley.edu>
Date

bin/commonmark: don't use the now-removed toObject for --ast.

Diffstat

1 file changed, 1 insertion, 1 deletion

Status File Name N° Changes Insertions Deletions
Modified js/bin/commonmark 2 1 1
diff --git 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: {} };
 }