summaryrefslogtreecommitdiff
path: root/js/lib/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/index.js')
-rwxr-xr-xjs/lib/index.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/lib/index.js b/js/lib/index.js
index a8bf009..cfb8bf9 100755
--- a/js/lib/index.js
+++ b/js/lib/index.js
@@ -9,5 +9,12 @@
// var renderer = new stmd.HtmlRenderer();
// console.log(renderer.render(parser.parse('Hello *world*')));
+var util = require('util');
+
+var renderAST = function(tree) {
+ return util.inspect(tree, {depth: null});
+}
+
module.exports.DocParser = require('./blocks');
module.exports.HtmlRenderer = require('./html-renderer');
+module.exports.ASTRenderer = renderAST;