fix(markdown): use (tcell.Style).Underline(true) to enable underline in renderer
This commit is contained in:
parent
5bba2a2bd6
commit
663baf4b70
1 changed files with 1 additions and 2 deletions
|
|
@ -162,8 +162,7 @@ func applyInlineAttr(style tcell.Style, attr discordmd.Attribute) tcell.Style {
|
|||
case discordmd.AttrItalics:
|
||||
return style.Italic(true)
|
||||
case discordmd.AttrUnderline:
|
||||
// tcell v3 in this project does not expose underline attrs.
|
||||
return style
|
||||
return style.Underline(true)
|
||||
case discordmd.AttrStrikethrough:
|
||||
return style.StrikeThrough(true)
|
||||
case discordmd.AttrMonospace:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue