Use full CMARK_NODE_x instead of NODE_x alias.
diff --git a/src/inlines.c b/src/inlines.c
index 7ea308d..f97aee9 100644
--- a/src/inlines.c
+++ b/src/inlines.c
@@ -620,7 +620,8 @@
 		// replace empty opener inline with emph
 		cmark_chunk_free(&(opener_inl->as.literal));
 		emph = opener_inl;
-		emph->type = use_delims == 1 ? NODE_EMPH : NODE_STRONG;
+		emph->type = use_delims == 1 ?
+			CMARK_NODE_EMPH : CMARK_NODE_STRONG;
 		// remove opener from list
 		remove_delimiter(subj, opener);
 	} else {
@@ -961,7 +962,7 @@
 
 match:
 	inl = opener->inl_text;
-	inl->type = is_image ? NODE_IMAGE : NODE_LINK;
+	inl->type = is_image ? CMARK_NODE_IMAGE : CMARK_NODE_LINK;
 	cmark_chunk_free(&inl->as.literal);
 	inl->first_child = link_text;
 	process_emphasis(subj, opener);