From 496cfe0330300f9c6c214d376f12fb9f3eb9632a Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 1 Jul 2015 15:23:36 -0700 Subject: html renderer: properly split info on first space char. See jgm/commonmark.js#54. --- src/html.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/html.c b/src/html.c index 69e2d23..8cf8835 100644 --- a/src/html.c +++ b/src/html.c @@ -2,7 +2,7 @@ #include #include #include - +#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; } -- cgit v1.2.3