summaryrefslogtreecommitdiff
path: root/src/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/node.c')
-rw-r--r--src/node.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/node.c b/src/node.c
index c48946d..d4c39cc 100644
--- a/src/node.c
+++ b/src/node.c
@@ -105,9 +105,9 @@ static void S_free_nodes(cmark_node *e) {
cmark_chunk_free(&e->as.code.literal);
break;
case CMARK_NODE_TEXT:
- case CMARK_NODE_INLINE_HTML:
+ case CMARK_NODE_HTML_INLINE:
case CMARK_NODE_CODE:
- case CMARK_NODE_HTML:
+ case CMARK_NODE_HTML_BLOCK:
cmark_chunk_free(&e->as.literal);
break;
case CMARK_NODE_LINK:
@@ -166,8 +166,8 @@ const char *cmark_node_get_type_string(cmark_node *node) {
return "item";
case CMARK_NODE_CODE_BLOCK:
return "code_block";
- case CMARK_NODE_HTML:
- return "html";
+ case CMARK_NODE_HTML_BLOCK:
+ return "html_block";
case CMARK_NODE_CUSTOM_BLOCK:
return "raw_block";
case CMARK_NODE_PARAGRAPH:
@@ -184,8 +184,8 @@ const char *cmark_node_get_type_string(cmark_node *node) {
return "linebreak";
case CMARK_NODE_CODE:
return "code";
- case CMARK_NODE_INLINE_HTML:
- return "inline_html";
+ case CMARK_NODE_HTML_INLINE:
+ return "html_inline";
case CMARK_NODE_CUSTOM_INLINE:
return "raw_inline";
case CMARK_NODE_EMPH:
@@ -263,9 +263,9 @@ const char *cmark_node_get_literal(cmark_node *node) {
}
switch (node->type) {
- case CMARK_NODE_HTML:
+ case CMARK_NODE_HTML_BLOCK:
case CMARK_NODE_TEXT:
- case CMARK_NODE_INLINE_HTML:
+ case CMARK_NODE_HTML_INLINE:
case CMARK_NODE_CODE:
return cmark_chunk_to_cstr(&node->as.literal);
@@ -285,9 +285,9 @@ int cmark_node_set_literal(cmark_node *node, const char *content) {
}
switch (node->type) {
- case CMARK_NODE_HTML:
+ case CMARK_NODE_HTML_BLOCK:
case CMARK_NODE_TEXT:
- case CMARK_NODE_INLINE_HTML:
+ case CMARK_NODE_HTML_INLINE:
case CMARK_NODE_CODE:
cmark_chunk_set_cstr(&node->as.literal, content);
return 1;