Преглед на файлове

fix(markdown): use (tcell.Style).Underline(true) to enable underline in renderer

ayn2op преди 2 месеца
родител
ревизия
663baf4b70
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 2
      internal/markdown/renderer.go

+ 1 - 2
internal/markdown/renderer.go

@@ -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: