From 05c22a23a47fb0153e787c53fb8c04068f6929a0 Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Tue, 14 Mar 2017 17:43:17 -0400 Subject: [PATCH] FIXED: Keep ':' in false positive definitions --- Sources/libMultiMarkdown/mmd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/libMultiMarkdown/mmd.c b/Sources/libMultiMarkdown/mmd.c index cc0150c..35a6184 100644 --- a/Sources/libMultiMarkdown/mmd.c +++ b/Sources/libMultiMarkdown/mmd.c @@ -1748,6 +1748,11 @@ void strip_line_tokens_from_block(mmd_engine * e, token * block) { strip_line_tokens_from_block(e, l); // Move children to parent + // Add ':' back + if (e->dstr->str[l->child->start - 1] == ':') { + temp = token_new(COLON, l->child->start - 1, 1); + token_append_child(block, temp); + } token_append_child(block, l->child); l->child = NULL; if (children == NULL) -- 2.40.0