- Commit
- 8950065009608ec71bd86516de8f66a9646557ee
- Parent
- 1d3d498da8afa35516dffc636238e0388c6d4d2c
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
xml.c: Include level attribute in header.
My personal build of CMark ✏️
xml.c: Include level attribute in header.
1 file changed, 4 insertions, 0 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | src/xml.c | 4 | 4 | 0 |
diff --git 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=\"");