cmark

Unnamed repository; edit this file 'description' to name the repository.

commit b281a1e24c119c6d35c34012cd964c84db908938
parent f1e64cfcdbf1fbbe8a4d5b4a34fd712e70bdf27d
Author: John MacFarlane <jgm@berkeley.edu>
Date:   Mon, 19 Oct 2015 15:55:44 -0700

Fixed DOCTYPE in xml output.

See
http://talk.commonmark.org/t/output-of-t-xml-should-have-different-doctype-declaration/1893.

Diffstat:
Msrc/xml.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xml.c b/src/xml.c
@@ -140,7 +140,7 @@ char *cmark_render_xml(cmark_node *root, int options) {
 
   cmark_strbuf_puts(state.xml, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
   cmark_strbuf_puts(state.xml,
-                    "<!DOCTYPE CommonMark SYSTEM \"CommonMark.dtd\">\n");
+                    "<!DOCTYPE document SYSTEM \"CommonMark.dtd\">\n");
   while ((ev_type = cmark_iter_next(iter)) != CMARK_EVENT_DONE) {
     cur = cmark_iter_get_node(iter);
     S_render_node(cur, ev_type, &state, options);