From a5a55657ad8c1da1e17eda8e0a321612e61c311e Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 25 Nov 2014 14:51:54 -0800 Subject: Rename NODE_STRING -> NODE_TEXT. In JS, use 'Text' instead of 'Str'. In spec, use "plain textual content" instead of "strings." --- src/html/html.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/html') diff --git a/src/html/html.c b/src/html/html.c index 27d1f0e..0e3dd15 100644 --- a/src/html/html.c +++ b/src/html/html.c @@ -47,7 +47,7 @@ static void inlines_to_plain_html(strbuf *html, cmark_node* node) while (true) { switch(cur->type) { - case NODE_STRING: + case NODE_TEXT: case NODE_INLINE_CODE: case NODE_INLINE_HTML: escape_html(html, cur->as.literal.data, cur->as.literal.len); @@ -191,7 +191,7 @@ static void node_to_html(strbuf *html, cmark_node *node) case NODE_REFERENCE_DEF: break; - case NODE_STRING: + case NODE_TEXT: escape_html(html, cur->as.literal.data, cur->as.literal.len); break; -- cgit v1.2.3