mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-22 04:21:44 +00:00
fix: spacing around links
This commit is contained in:
parent
dad1dcf2c5
commit
2068e85e47
@ -18,10 +18,10 @@ proc renderInline(self: ChatMessageList, elem: TextItem): string =
|
||||
let value = escape_html(elem.literal.strip)
|
||||
case elem.textType:
|
||||
of "": result = value
|
||||
of "code": result = fmt(" <code>{value}</code>")
|
||||
of "emph": result = fmt(" <em>{value}</em>")
|
||||
of "strong": result = fmt(" <strong>{value}</strong>")
|
||||
of "link": result = elem.destination
|
||||
of "code": result = fmt(" <code>{value}</code> ")
|
||||
of "emph": result = fmt(" <em>{value}</em> ")
|
||||
of "strong": result = fmt(" <strong>{value}</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> ")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user