summaryrefslogtreecommitdiff
path: root/src/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/html.c')
-rw-r--r--src/html.c3
1 files changed, 2 insertions, 1 deletions
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, "</code></pre>\n");
break;