diff --git a/DiscordChatExporter.Core/Markdown/Parsing/MarkdownParser.cs b/DiscordChatExporter.Core/Markdown/Parsing/MarkdownParser.cs index ca1282db..cde22ce9 100644 --- a/DiscordChatExporter.Core/Markdown/Parsing/MarkdownParser.cs +++ b/DiscordChatExporter.Core/Markdown/Parsing/MarkdownParser.cs @@ -264,6 +264,7 @@ internal static partial class MarkdownParser private static readonly IMatcher EscapedSymbolTextNodeMatcher = new RegexMatcher( // Capture any "symbol/other" character or surrogate pair preceded by a backslash. // This escapes them from matching for emoji. + // https://github.com/Tyrrrz/DiscordChatExporter/issues/230 new Regex(@"\\(\p{So}|\p{Cs}{2})", DefaultRegexOptions), (_, m) => new TextNode(m.Groups[1].Value) );