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/blocks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/blocks.c') diff --git a/src/blocks.c b/src/blocks.c index fe43055..4dcd3f4 100644 --- a/src/blocks.c +++ b/src/blocks.c @@ -232,7 +232,7 @@ finalize(cmark_parser *parser, cmark_node* b, int line_number) cmark_strbuf_drop(&b->string_content, firstlinelen + 1); } - b->as.literal = cmark_chunk_buf_detach(&b->string_content); + b->as.code.literal = cmark_chunk_buf_detach(&b->string_content); break; case NODE_HTML: -- cgit v1.2.3