Explorar el Código

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

ayn2op hace 2 meses
padre
commit
663baf4b70
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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: