summaryrefslogtreecommitdiff
path: root/src/commonmark.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/commonmark.c')
-rw-r--r--src/commonmark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commonmark.c b/src/commonmark.c
index 640779d..e87e119 100644
--- a/src/commonmark.c
+++ b/src/commonmark.c
@@ -416,7 +416,7 @@ S_render_node(cmark_node *node, cmark_event_type ev_type,
for (i = 0; i < numticks; i++) {
lit(state, "`", false);
}
- if (code->len <= 1 || code->data[0] == '`') {
+ if (code->len == 0 || code->data[0] == '`') {
lit(state, " ", false);
}
out(state, node->as.literal, true, LITERAL);