summaryrefslogtreecommitdiff
path: root/src/html.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-01-10 22:58:18 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2016-01-10 22:58:18 -0800
commite384149e683fd6ea950ba9318525563175ca9f47 (patch)
treee480eb1f86384954eb73735aafb12beeae25f4aa /src/html.c
parent64ba9539e97af3cf1a41247ed929492d6dda588d (diff)
html renderer - removed unnecessary check for 'fenced'.
It's sufficient to check that the info string is empty. Indeed, those who use the API may well create a code block with an info string without explicitly setting 'fenced'.
Diffstat (limited to 'src/html.c')
-rw-r--r--src/html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html.c b/src/html.c
index 7493596..54f27ba 100644
--- a/src/html.c
+++ b/src/html.c
@@ -144,7 +144,7 @@ static int S_render_node(cmark_node *node, cmark_event_type ev_type,
case CMARK_NODE_CODE_BLOCK:
cr(html);
- if (!node->as.code.fenced || node->as.code.info.len == 0) {
+ if (node->as.code.info.len == 0) {
cmark_strbuf_puts(html, "<pre");
S_render_sourcepos(node, html, options);
cmark_strbuf_puts(html, "><code>");