Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

style(markdown): format the escaped emoji branch (#2012)

Hampus53cac0b614b4
diff --git a/packages/markdown_parser/rust/src/inline.rs b/packages/markdown_parser/rust/src/inline.rs
index 014c626fe..75b954bda 100644
--- a/packages/markdown_parser/rust/src/inline.rs
+++ b/packages/markdown_parser/rust/src/inline.rs
@@ -116,7 +116,9 @@ fn parse_inline_with_context(
position += 1 + result.advance;
continue;
}
- if let Some(emoji) = parser.emoji_context().standard_at(base_offset + position + 1)
+ 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());