diff options
author | John MacFarlane <[email protected]> | 2014-11-28 09:44:28 -0800 |
---|---|---|
committer | John MacFarlane <[email protected]> | 2014-11-28 09:44:28 -0800 |
commit | bc61ae39e0370d642d75f136c9adbd07cce1818f (patch) | |
tree | f2837bf06104c7cedce41d950d3c999de36f4452 /src/blocks.c | |
parent | 4ec2c47f71a94961fc85e02baa5a9f79feff7deb (diff) | |
parent | b01c29e07a3a007f4509e1c9c309a532b330f93a (diff) |
Merge pull request #222 from nwellnhof/short_name_cleanup
Short name cleanup
Diffstat (limited to 'src/blocks.c')
-rw-r--r-- | src/blocks.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/blocks.c b/src/blocks.c index 6f995b3..09a9306 100644 --- a/src/blocks.c +++ b/src/blocks.c @@ -49,7 +49,7 @@ cmark_doc_parser *cmark_new_doc_parser() strbuf *line = (strbuf*)malloc(sizeof(strbuf)); cmark_strbuf_init(line, 256); - parser->refmap = reference_map_new(); + parser->refmap = cmark_reference_map_new(); parser->root = document; parser->current = document; parser->line_number = 0; @@ -184,7 +184,7 @@ static void finalize(cmark_doc_parser *parser, cmark_node* b, int line_number) case NODE_PARAGRAPH: pos = 0; while (strbuf_at(&b->string_content, 0) == '[' && - (pos = parse_reference_inline(&b->string_content, parser->refmap))) { + (pos = cmark_parse_reference_inline(&b->string_content, parser->refmap))) { strbuf_drop(&b->string_content, pos); } @@ -285,7 +285,7 @@ typedef struct BlockStack { // Walk through cmark_node and all children, recursively, parsing // string content into inline content where appropriate. -static void process_inlines(cmark_node* cur, reference_map *refmap) +static void process_inlines(cmark_node* cur, cmark_reference_map *refmap) { block_stack* stack = NULL; block_stack* newstack = NULL; @@ -294,7 +294,7 @@ static void process_inlines(cmark_node* cur, reference_map *refmap) switch (cur->type) { case NODE_PARAGRAPH: case NODE_HEADER: - parse_inlines(cur, refmap); + cmark_parse_inlines(cur, refmap); break; default: |