From 9fe3b46ddb58ebcd2a94e59e5687fd439d0ead32 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Tue, 18 Nov 2014 00:43:51 +0100 Subject: Store link labels as children in tree structure --- src/print.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/print.c') 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; -- cgit v1.2.3