diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-01-10 17:17:09 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-01-10 17:17:09 -0800 |
commit | 2fe4743a1303ca5dcba4018519a044e9de8e11db (patch) | |
tree | e5ce227f23b113c3bc2b8bbb9f819d15618cec7c /dingus.html | |
parent | 0f3d82b846fb70835a059542405e849a59fa2e0a (diff) |
Made 'options' a parameter of the renderer constructors...
as opposed to the 'render' function.
Added a 'colors' parameter for the ast renderer.
Diffstat (limited to 'dingus.html')
-rw-r--r-- | dingus.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dingus.html b/dingus.html index 6b379eb..ee1622f 100644 --- a/dingus.html +++ b/dingus.html @@ -10,6 +10,7 @@ <script type="text/javascript"> var writer = new commonmark.HtmlRenderer(); +var astwriter = new commonmark.ASTRenderer(); var reader = new commonmark.DocParser(); function getQueryVariable(variable) { @@ -57,7 +58,7 @@ $(document).ready(function() { var renderTime = endTime - startTime; $("#preview").html(result); $("#html").text(result); - $("#ast").text(commonmark.ASTRenderer(parsed)); + $("#ast").text(astwriter.render(parsed)); $("#rendertime").text(renderTime); }; var parseAndRender = function() { |