From 6e599f2ceb8ca1aee0cdb47d37aba16ac5938641 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 28 Dec 2015 11:46:33 -0800 Subject: Rename NODE_HTML -> NODE_HTML_BLOCK, NODE_INLINE_HTML -> NODE_HTML_INLINE. API change. Sorry, but this is the time to break things, before 1.0 is released. This matches the recent changes to CommonMark.dtd. --- src/html.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/html.c') diff --git a/src/html.c b/src/html.c index 36dacf7..7493596 100644 --- a/src/html.c +++ b/src/html.c @@ -58,7 +58,7 @@ static int S_render_node(cmark_node *node, cmark_event_type ev_type, switch (node->type) { case CMARK_NODE_TEXT: case CMARK_NODE_CODE: - case CMARK_NODE_INLINE_HTML: + case CMARK_NODE_HTML_INLINE: escape_html(html, node->as.literal.data, node->as.literal.len); break; @@ -166,7 +166,7 @@ static int S_render_node(cmark_node *node, cmark_event_type ev_type, cmark_strbuf_puts(html, "\n"); break; - case CMARK_NODE_HTML: + case CMARK_NODE_HTML_BLOCK: cr(html); if (options & CMARK_OPT_SAFE) { cmark_strbuf_puts(html, ""); @@ -237,7 +237,7 @@ static int S_render_node(cmark_node *node, cmark_event_type ev_type, cmark_strbuf_puts(html, ""); break; - case CMARK_NODE_INLINE_HTML: + case CMARK_NODE_HTML_INLINE: if (options & CMARK_OPT_SAFE) { cmark_strbuf_puts(html, ""); } else { -- cgit v1.2.3