A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
fix(markdown): render an escaped raw emoji as a plain glyph (#2011)
Hampus82c29398d3a4
diff --git a/packages/markdown_parser/rust/src/inline.rs b/packages/markdown_parser/rust/src/inline.rsindex 4dee04fdf..014c626fe 100644--- a/packages/markdown_parser/rust/src/inline.rs+++ b/packages/markdown_parser/rust/src/inline.rs@@ -116,6 +116,13 @@ fn parse_inline_with_context(position += 1 + result.advance;continue;}+ if let Some(emoji) = parser.emoji_context().standard_at(base_offset + position + 1)+ && text[position + 1..].starts_with(&emoji.raw)+ {+ accumulated.extend_from_slice(emoji.raw.as_bytes());+ position += 1 + emoji.len;+ continue;+ }if is_escapable_character(next)|| is_ordered_list_marker_dot_escape(text, position)|| is_word_dot_escape(text, position)