- Commit
- 5dba9e685d3491e55bd10a698adaf28bb4d44cd2
- Parent
- e345fd465ac5920cd78315883a76f4bafbaec71f
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
commonmark - use space after delim if code is empty.
My personal build of CMark ✏️
commonmark - use space after delim if code is empty.
1 file changed, 1 insertion, 1 deletion
Status | File Name | N° Changes | Insertions | Deletions |
Modified | src/commonmark.c | 2 | 1 | 1 |
diff --git 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->data[0] == '`') { + if (code->len <= 1 || code->data[0] == '`') { lit(state, " ", false); } out(state, node->as.literal, true, LITERAL);