diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2014-11-25 14:51:54 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2014-11-25 14:51:54 -0800 |
commit | a5a55657ad8c1da1e17eda8e0a321612e61c311e (patch) | |
tree | eeffae63dff482617227c435e63bff63f2611fb7 /src/html | |
parent | e31e2d2fe1d28223eee9f406b82d6f48552f5be7 (diff) |
Rename NODE_STRING -> NODE_TEXT.
In JS, use 'Text' instead of 'Str'.
In spec, use "plain textual content" instead of "strings."
Diffstat (limited to 'src/html')
-rw-r--r-- | src/html/html.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |