diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-12-28 11:46:33 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-12-28 11:46:33 -0800 |
commit | 6e599f2ceb8ca1aee0cdb47d37aba16ac5938641 (patch) | |
tree | a7c47bf8e9272a1123b42f9fb45510cdb6694627 /src/blocks.c | |
parent | 6db3cb40add3800246bee8cd051baf4243e8ae44 (diff) |
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.
Diffstat (limited to 'src/blocks.c')
-rw-r--r-- | src/blocks.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/blocks.c b/src/blocks.c index 259fa54..6f2e5c8 100644 --- a/src/blocks.c +++ b/src/blocks.c @@ -262,7 +262,7 @@ static cmark_node *finalize(cmark_parser *parser, cmark_node *b) { b->as.code.literal = cmark_chunk_buf_detach(&b->string_content); break; - case CMARK_NODE_HTML: + case CMARK_NODE_HTML_BLOCK: b->as.literal = cmark_chunk_buf_detach(&b->string_content); break; @@ -690,7 +690,7 @@ static void S_process_line(cmark_parser *parser, const unsigned char *buffer, // a heading can never contain more than one line all_matched = false; - } else if (container->type == CMARK_NODE_HTML) { + } else if (container->type == CMARK_NODE_HTML_BLOCK) { switch (container->as.html_block_type) { case 1: @@ -735,7 +735,7 @@ static void S_process_line(cmark_parser *parser, const unsigned char *buffer, maybe_lazy = parser->current->type == CMARK_NODE_PARAGRAPH; // try new container starts: while (container->type != CMARK_NODE_CODE_BLOCK && - container->type != CMARK_NODE_HTML) { + container->type != CMARK_NODE_HTML_BLOCK) { S_find_first_nonspace(parser, &input); indented = parser->indent >= CODE_INDENT; @@ -791,7 +791,7 @@ static void S_process_line(cmark_parser *parser, const unsigned char *buffer, (matched = scan_html_block_start_7( &input, parser->first_nonspace))))) { - container = add_child(parser, container, CMARK_NODE_HTML, + container = add_child(parser, container, CMARK_NODE_HTML_BLOCK, parser->first_nonspace + 1); container->as.html_block_type = matched; // note, we don't adjust parser->offset because the tag is part of the @@ -933,7 +933,7 @@ static void S_process_line(cmark_parser *parser, const unsigned char *buffer, add_line(container, &input, parser->offset); - } else if (container->type == CMARK_NODE_HTML) { + } else if (container->type == CMARK_NODE_HTML_BLOCK) { add_line(container, &input, parser->offset); |