summaryrefslogtreecommitdiff
path: root/src/xml.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-11 20:41:45 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-11 20:41:45 -0800
commit8950065009608ec71bd86516de8f66a9646557ee (patch)
tree46066aa5cd343fd8011b65e355e8e49908f2f1b1 /src/xml.c
parent1d3d498da8afa35516dffc636238e0388c6d4d2c (diff)
xml.c: Include level attribute in header.
Diffstat (limited to 'src/xml.c')
-rw-r--r--src/xml.c4
1 files changed, 4 insertions, 0 deletions
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=\"");