summaryrefslogtreecommitdiff
path: root/src/html.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-12-16 11:52:21 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-12-16 11:52:21 -0800
commit06fcdb7592a6106daa52dfe4830373ed735e4053 (patch)
treee4be503c26970774af45f0b54ac348f78b7de49e /src/html.c
parent903f3ca65d186f660ac934d228034c4f3b993f2f (diff)
HTML writer: fixed bug in detection of fenced code blocks.
Diffstat (limited to 'src/html.c')
-rw-r--r--src/html.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/html.c b/src/html.c
index b007d67..b5a0950 100644
--- a/src/html.c
+++ b/src/html.c
@@ -137,8 +137,7 @@ S_render_node(cmark_node *node, cmark_event_type ev_type, void *vstate)
case CMARK_NODE_CODE_BLOCK:
cr(html);
- if (&node->as.code.fence_length == 0
- || node->as.code.info.len == 0) {
+ if (!node->as.code.fenced || node->as.code.info.len == 0) {
cmark_strbuf_puts(html, "<pre><code>");
}
else {