summaryrefslogtreecommitdiff
path: root/src/blocks.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-12-16 12:01:19 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-12-16 12:01:19 -0800
commit6e25c889cf33a6217a9b4cf37ea1a6361883901b (patch)
tree949a5482cf2df495107edf03d822fc5a05e1ae31 /src/blocks.c
parent06fcdb7592a6106daa52dfe4830373ed735e4053 (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/blocks.c')
-rw-r--r--src/blocks.c2
1 files changed, 1 insertions, 1 deletions
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: