summaryrefslogtreecommitdiff
path: root/src/html.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-12-14 13:49:53 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-12-14 14:03:57 -0800
commit37554bbb7901b7116e1a5006f331968444141b76 (patch)
tree9307d76a0c83f2e36158269d15f72fd565dd7c56 /src/html.c
parent1014764a109e7f8f47d466080962f5f344287277 (diff)
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.
Diffstat (limited to 'src/html.c')
-rw-r--r--src/html.c5
1 files changed, 2 insertions, 3 deletions
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, "</code></pre>\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: