From b049e7c502d2531163a5ae80912d0bd91a0de929 Mon Sep 17 00:00:00 2001 From: KMY Date: Sun, 5 Mar 2023 09:05:16 +0900 Subject: [PATCH] Fix markdown underline with custom emoji --- app/lib/text_formatter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/text_formatter.rb b/app/lib/text_formatter.rb index f4a904c8af..91c0ac1273 100644 --- a/app/lib/text_formatter.rb +++ b/app/lib/text_formatter.rb @@ -199,7 +199,7 @@ class TextFormatter end def underline(text) - nil + text.include?(':') ? nil : '' + text + '' end private