fix: spacing around links

This commit is contained in:
Richard Ramos 2020-09-28 10:06:05 -04:00 committed by Iuri Matias
parent dad1dcf2c5
commit 2068e85e47
1 changed files with 4 additions and 4 deletions

View File

@ -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> ")