diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-07-01 15:23:36 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-07-01 15:23:36 -0700 |
commit | 496cfe0330300f9c6c214d376f12fb9f3eb9632a (patch) | |
tree | 945b5de817c63856817395a8ac2d235881bede5f | |
parent | bae7b61487f58f296389d5007df7166ddcfecad8 (diff) |
html renderer: properly split info on first space char.
See jgm/commonmark.js#54.
-rw-r--r-- | src/html.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2,7 +2,7 @@ #include <stdio.h> #include <string.h> #include <assert.h> - +#include "cmark_ctype.h" #include "config.h" #include "cmark.h" #include "node.h" @@ -156,7 +156,7 @@ S_render_node(cmark_node *node, cmark_event_type ev_type, } else { bufsize_t first_tag = 0; while (first_tag < node->as.code.info.len && - node->as.code.info.data[first_tag] != ' ') { + !cmark_isspace(node->as.code.info.data[first_tag])) { first_tag += 1; } |