cmark

My personal build of CMark ✏️

Commit
847058d68b3e373dfce0af75ac7f26394341ca75
Parent
5ba0fc09583fd85ef13df60130020f75ae846f94
Author
John MacFarlane <jgm@berkeley.edu>
Date

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

Diffstat

1 file changed, 1 insertion, 0 deletions

Status File Name N° Changes Insertions Deletions
Modified src/inlines.c 1 1 0
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