diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-11-18 00:43:51 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-11-17 21:43:47 -0800 |
commit | 9fe3b46ddb58ebcd2a94e59e5687fd439d0ead32 (patch) | |
tree | a5499a9478160fcbfdf720808c278f5e26b21787 /src/inlines.c | |
parent | 59fd5633da5395cbd3627af4a2ab855dc43ce1e0 (diff) |
Store link labels as children in tree structure
Diffstat (limited to 'src/inlines.c')
-rw-r--r-- | src/inlines.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inlines.c b/src/inlines.c index 96b1792..57f4b28 100644 --- a/src/inlines.c +++ b/src/inlines.c @@ -68,7 +68,7 @@ static inline cmark_node *make_link(cmark_node *label, unsigned char *url, unsig cmark_node* e = (cmark_node *)calloc(1, sizeof(*e)); if(e != NULL) { e->type = CMARK_NODE_LINK; - e->as.link.label = label; + e->first_child = label; e->as.link.url = url; e->as.link.title = title; e->next = NULL; @@ -735,7 +735,7 @@ match: inl = opener->first_inline; inl->type = is_image ? NODE_IMAGE : NODE_LINK; chunk_free(&inl->as.literal); - inl->as.link.label = link_text; + inl->first_child = link_text; process_emphasis(subj, opener->previous); inl->as.link.url = url; inl->as.link.title = title; |