From a254c113a70e21c9498dbad7646eddf7414002a0 Mon Sep 17 00:00:00 2001 From: Lonami Date: Fri, 21 Dec 2018 18:25:16 +0000 Subject: [PATCH] Fix markdown parse edge case --- stdplugins/markdown.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stdplugins/markdown.py b/stdplugins/markdown.py index d9e885e..b56e7ed 100644 --- a/stdplugins/markdown.py +++ b/stdplugins/markdown.py @@ -102,6 +102,8 @@ def parse(message, old_entities=None): # Skip already existing entities if we're at one if i == e.offset: i += e.length + else: + after += 1 # Find the first pattern that matches for pattern, parser in MATCHERS: