From 95fcee2d00564eb4d5d572096d30e10a8c9213b4 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Tue, 17 Nov 2020 16:33:30 -0500 Subject: [PATCH] feat: support italic-bold in messages --- src/app/chat/views/message_format.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/chat/views/message_format.nim b/src/app/chat/views/message_format.nim index f44aa6ceeb..3e8c23e9ff 100644 --- a/src/app/chat/views/message_format.nim +++ b/src/app/chat/views/message_format.nim @@ -23,10 +23,12 @@ proc renderInline(self: ChatMessageList, elem: TextItem): string = of "code": result = fmt("{value}") of "emph": result = fmt("{value}") of "strong": result = fmt("{value}") + of "strong-emph": result = fmt(" {value} ") of "link": result = fmt("{elem.destination}") of "mention": result = fmt("{self.mention(value)}") of "status-tag": result = fmt("#{value}") of "del": result = fmt("{value}") + else: result = fmt(" {value} ") # See render-block in status-react/src/status_im/ui/screens/chat/message/message.cljs proc renderBlock(self: ChatMessageList, message: Message): string =