Skip to content

Commit

Permalink
change from span to p tag to match other places
Browse files Browse the repository at this point in the history
  • Loading branch information
WanderingHogan committed Nov 7, 2023
1 parent e56882d commit 00f4649
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kit/src/components/message/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -451,13 +451,13 @@ fn markdown(text: &str, emojis: bool) -> String {
// TODO: Watch this issue for a fix: https://github.com/open-i18n/rust-unic/issues/280
// This is a temporary workaround for some characters unic-emoji-char thinks are emojis
if !r.contains('#') // for multiple #
&& !r.contains('*') // for multiple #
&& !r.contains('*') // for multiple *
&& !r.chars().all(char::is_alphanumeric) // for any numbers, eg 1, 11, 111
&& is_only_emojis(&r)
{
return format!("<span class=\"big-emoji\">{r}</span>");
} else {
return format!("<span>{r}</span>");
return format!("<p>{r}</p>");
}
}

Expand Down

0 comments on commit 00f4649

Please sign in to comment.