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/blocks.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/blocks.c')
-rw-r--r-- | src/blocks.c | 2 |
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: |