From 33bde8cc2ffdadd96840acb8392c370aa3d20045 Mon Sep 17 00:00:00 2001 From: ryanfleury Date: Thu, 1 Jul 2021 12:53:21 -0600 Subject: [PATCH] fix bug with child/tag-from-index, in accordance with opl change --- source/md_impl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/md_impl.c b/source/md_impl.c index dd9fdde..606f3d9 100644 --- a/source/md_impl.c +++ b/source/md_impl.c @@ -2112,13 +2112,13 @@ MD_TagFromString(MD_Node *node, MD_String8 tag_string, MD_MatchFlags flags) MD_FUNCTION_IMPL MD_Node * MD_ChildFromIndex(MD_Node *node, int n) { - return MD_NodeFromIndex(node->first_child, node->last_child, n); + return MD_NodeFromIndex(node->first_child, MD_NilNode(), n); } MD_FUNCTION_IMPL MD_Node * MD_TagFromIndex(MD_Node *node, int n) { - return MD_NodeFromIndex(node->first_child, node->last_child, n); + return MD_NodeFromIndex(node->first_child, MD_NilNode(), n); } MD_FUNCTION_IMPL MD_Node *