From 96d133dd2f5319db34b72fa34d6701a58df9d145 Mon Sep 17 00:00:00 2001 From: teidesu <86301490+teidesu@users.noreply.github.com> Date: Tue, 20 Jul 2021 03:26:00 +0300 Subject: [PATCH] fix(markdown): proper handling of non-link [] groups --- packages/markdown-parser/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/markdown-parser/src/index.ts b/packages/markdown-parser/src/index.ts index 47fcd9df..50899290 100644 --- a/packages/markdown-parser/src/index.ts +++ b/packages/markdown-parser/src/index.ts @@ -128,6 +128,7 @@ export class MarkdownMessageEntityParser implements IMessageEntityParser { // ignore this, and add opening [ result = `${result.substr(0, ent.offset)}[${result.substr(ent.offset)}]` pos += 1 + insideLink = false continue }