diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-12-14 13:49:53 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-12-14 14:03:57 -0800 |
commit | 37554bbb7901b7116e1a5006f331968444141b76 (patch) | |
tree | 9307d76a0c83f2e36158269d15f72fd565dd7c56 /src/html.c | |
parent | 1014764a109e7f8f47d466080962f5f344287277 (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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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: |