From 37554bbb7901b7116e1a5006f331968444141b76 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 14 Dec 2014 13:49:53 -0800 Subject: Use as.literal instead of string_content for HTML and code blocks. This is for consistency with the other types of nodes that have literal strings as contents. --- src/html.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/html.c') diff --git a/src/html.c b/src/html.c index e733a48..23812df 100644 --- a/src/html.c +++ b/src/html.c @@ -153,14 +153,13 @@ S_render_node(cmark_node *node, cmark_event_type ev_type, void *vstate) strbuf_puts(html, "\">"); } - escape_html(html, node->string_content.ptr, node->string_content.size); + escape_html(html, node->as.literal.data, node->as.literal.len); strbuf_puts(html, "\n"); break; case CMARK_NODE_HTML: cr(html); - strbuf_put(html, node->string_content.ptr, - node->string_content.size); + strbuf_put(html, node->as.literal.data, node->as.literal.len); break; case CMARK_NODE_HRULE: -- cgit v1.2.3