feat: support italic-bold in messages

This commit is contained in:
Jonathan Rainville 2020-11-17 16:33:30 -05:00
parent b536707646
commit 95fcee2d00
1 changed files with 2 additions and 0 deletions

View File

@ -23,10 +23,12 @@ proc renderInline(self: ChatMessageList, elem: TextItem): string =
of "code": result = fmt("<code>{value}</code>")
of "emph": result = fmt("<em>{value}</em>")
of "strong": result = fmt("<strong>{value}</strong>")
of "strong-emph": result = fmt(" <strong><em>{value}</em></strong> ")
of "link": result = fmt("{elem.destination}")
of "mention": result = fmt("<a href=\"//{value}\" class=\"mention\">{self.mention(value)}</a>")
of "status-tag": result = fmt("<a href=\"#{value}\" class=\"status-tag\">#{value}</a>")
of "del": result = fmt("<del>{value}</del>")
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 =