cmark

Unnamed repository; edit this file 'description' to name the repository.

commit 847058d68b3e373dfce0af75ac7f26394341ca75
parent 5ba0fc09583fd85ef13df60130020f75ae846f94
Author: John MacFarlane <jgm@berkeley.edu>
Date:   Mon, 17 Nov 2014 23:09:08 -0800

Make sure the emph inline added in process_emphasis has a parent.

Diffstat:
Msrc/inlines.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/inlines.c b/src/inlines.c
@@ -383,6 +383,7 @@ static void process_emphasis(subject *subj, delimiter_stack *stack_bottom)
 				emph = use_delims == 1 ? make_emph(inl->next) : make_strong(inl->next);
 				emph->next = closer->first_inline;
 				emph->prev = inl;
+				emph->parent = inl->parent;
 				inl->next = emph;
 
 				// if opener has 0 delims, remove it and its associated inline