From d57f3952ca8b9aac16db8243539f4c1c5dbf3c93 Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Sat, 27 Dec 2014 21:51:30 -0800
Subject: Added xml writer, to dump the AST in XML.

This is a work-in-progress.

CommonMark.dtd gives the DTD for the generated XML.

Closes #53.
---
 src/cmark.h | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'src/cmark.h')

diff --git a/src/cmark.h b/src/cmark.h
index 3b60d67..1dab0dd 100644
--- a/src/cmark.h
+++ b/src/cmark.h
@@ -394,6 +394,11 @@ cmark_node *cmark_parse_file(FILE *f);
 CMARK_EXPORT
 char *cmark_render_ast(cmark_node *root);
 
+/** Render a 'node' tree as XML.
+ */
+CMARK_EXPORT
+char *cmark_render_xml(cmark_node *root);
+
 /** Render a 'node' tree as an HTML fragment.  It is up to the user
  * to add an appropriate header and footer.
  */
-- 
cgit v1.2.3