diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-12-27 21:51:30 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-12-28 16:27:00 -0800 |
commit | d57f3952ca8b9aac16db8243539f4c1c5dbf3c93 (patch) | |
tree | 21ff4ae66cc5d6130963172df2badb3a77a4930e /src/cmark.h | |
parent | bf44064d09afd04039058a00c32c1532fb5e2b61 (diff) |
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.
Diffstat (limited to 'src/cmark.h')
-rw-r--r-- | src/cmark.h | 5 |
1 files changed, 5 insertions, 0 deletions
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. */ |