From 8950065009608ec71bd86516de8f66a9646557ee Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 11 Jan 2015 20:41:45 -0800 Subject: xml.c: Include level attribute in header. --- src/xml.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/xml.c b/src/xml.c index 8a1d3fc..46fc840 100644 --- a/src/xml.c +++ b/src/xml.c @@ -96,6 +96,10 @@ S_render_node(cmark_node *node, cmark_event_type ev_type, (cmark_node_get_list_tight(node) ? "true" : "false")); break; + case CMARK_NODE_HEADER: + cmark_strbuf_printf(xml, " level=\"%d\"", + node->as.header.level); + break; case CMARK_NODE_CODE_BLOCK: if (node->as.code.info.len > 0) { cmark_strbuf_puts(xml, " info=\""); -- cgit v1.2.3