mirror of
https://github.com/fluxerapp/fluxer.git
synced 2026-09-02 21:04:06 +03:00
fix(markdown): render an escaped emoji shortcode as its raw glyph (#2004)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user