From 00f46491a6c05fa53197ab5be43f0c6a47c55b53 Mon Sep 17 00:00:00 2001 From: Chris Hogan Date: Mon, 6 Nov 2023 22:21:40 -0700 Subject: [PATCH] change from span to p tag to match other places --- kit/src/components/message/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kit/src/components/message/mod.rs b/kit/src/components/message/mod.rs index d6fb597e45d..c2b34caed6a 100644 --- a/kit/src/components/message/mod.rs +++ b/kit/src/components/message/mod.rs @@ -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!("{r}"); } else { - return format!("{r}"); + return format!("

{r}

"); } }