- Commit
- 7b43ae5be655259cc9081843b0e34e58bad37b72
- Parent
- 11a7287be0f5040f4cff4415466d04604b7b5015
- Author
- John MacFarlane <fiddlosopher@gmail.com>
- Date
Updated dingus to use XML for the AST pane.
My personal build of CMark ✏️
Updated dingus to use XML for the AST pane.
1 file changed, 2 insertions, 1 deletion
Status | File Name | N° Changes | Insertions | Deletions |
Modified | dingus.html | 3 | 2 | 1 |
diff --git a/dingus.html b/dingus.html @@ -10,6 +10,7 @@ <script type="text/javascript"> var writer = new commonmark.HtmlRenderer(); +var xmlwriter = new commonmark.XMLRenderer({ sourcepos: true }); 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("UNDER CONSTRUCTION"); // TODO - replace with xml + $("#ast").text(xmlwriter.render(parsed)); $("#rendertime").text(renderTime); }; var parseAndRender = function() {