A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
fix(markdown): render an escaped emoji shortcode as its raw glyph (#2004)
Hampusc101610c46bc
diff --git a/packages/markdown_parser/rust/src/inline.rs b/packages/markdown_parser/rust/src/inline.rsindex 9aefc8d68..4dee04fdf 100644--- a/packages/markdown_parser/rust/src/inline.rs+++ b/packages/markdown_parser/rust/src/inline.rs@@ -106,6 +106,16 @@ fn parse_inline_with_context(position += 2;continue;}+ if next == b':'+ && let Some(result) = links::parse_emoji_shortcode(parser, &text[position + 1..])+ && let Node::Emoji {+ kind: EmojiKind::Standard { raw, .. },+ } = &result.node+ {+ accumulated.extend_from_slice(raw.as_bytes());+ position += 1 + result.advance;+ continue;+ }if is_escapable_character(next)|| is_ordered_list_marker_dot_escape(text, position)|| is_word_dot_escape(text, position)