From 6e25c889cf33a6217a9b4cf37ea1a6361883901b Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 16 Dec 2014 12:01:19 -0800 Subject: Added 'literal' field to 'code' struct. In the last few commits we were using as.code.fenced and as.literal at the same time for NODE_CODE_BLOCK, which obviously led to problems. --- src/html.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/html.c') diff --git a/src/html.c b/src/html.c index b5a0950..40b5e94 100644 --- a/src/html.c +++ b/src/html.c @@ -152,7 +152,8 @@ S_render_node(cmark_node *node, cmark_event_type ev_type, void *vstate) cmark_strbuf_puts(html, "\">"); } - escape_html(html, node->as.literal.data, node->as.literal.len); + escape_html(html, node->as.code.literal.data, + node->as.code.literal.len); cmark_strbuf_puts(html, "\n"); break; -- cgit v1.2.3