summaryrefslogtreecommitdiff
path: root/src/blocks.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-12-12 23:00:51 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-12-12 23:20:36 -0800
commitb598b52a4acdc2332be3d34e30237d1b93b7dd03 (patch)
tree090d34e6a07d1cf6753cb297dd3704a14403660b /src/blocks.c
parent45f8e0a6dbafee22b5e6f5c94eca01b92b0ba0aa (diff)
Removed CMARK_NODE_REFERENCE_DEF from API.
There's no reason to store these empty nodes in the API. The references have already been resolved.
Diffstat (limited to 'src/blocks.c')
-rw-r--r--src/blocks.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/blocks.c b/src/blocks.c
index ebef88b..8ca10b9 100644
--- a/src/blocks.c
+++ b/src/blocks.c
@@ -201,7 +201,8 @@ static void finalize(cmark_parser *parser, cmark_node* b, int line_number)
strbuf_drop(&b->string_content, pos);
}
if (is_blank(&b->string_content, 0)) {
- b->type = NODE_REFERENCE_DEF;
+ // remove blank node (former reference def)
+ cmark_node_free(b);
}
break;