diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-12-16 12:01:19 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-12-16 12:01:19 -0800 |
commit | 6e25c889cf33a6217a9b4cf37ea1a6361883901b (patch) | |
tree | 949a5482cf2df495107edf03d822fc5a05e1ae31 /src/html.c | |
parent | 06fcdb7592a6106daa52dfe4830373ed735e4053 (diff) |
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.
Diffstat (limited to 'src/html.c')
-rw-r--r-- | src/html.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |