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/print.c | |
parent | 59fd5633da5395cbd3627af4a2ab855dc43ce1e0 (diff) |
Store link labels as children in tree structure
Diffstat (limited to 'src/print.c')
-rw-r--r-- | src/print.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/print.c b/src/print.c index 98ae0a6..c8bf5f5 100644 --- a/src/print.c +++ b/src/print.c @@ -76,15 +76,15 @@ static void print_inlines(cmark_node* ils, int indent) print_str(ils->as.link.title, -1); } putchar('\n'); - print_inlines(ils->as.link.label, indent + 2); + print_inlines(ils->first_child, indent + 2); break; case NODE_STRONG: printf("strong\n"); - print_inlines(ils->as.link.label, indent + 2); + print_inlines(ils->first_child, indent + 2); break; case NODE_EMPH: printf("emph\n"); - print_inlines(ils->as.link.label, indent + 2); + print_inlines(ils->first_child, indent + 2); break; default: break; |