Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TitleBoxStyle = func() lipgloss.Style { b := lipgloss.RoundedBorder() b.Right = "├" return lipgloss.NewStyle().BorderStyle(b).Padding(0, 1) }() InfoBoxStyle = func() lipgloss.Style { b := lipgloss.RoundedBorder() b.Left = "┤" return TitleBoxStyle.Copy().BorderStyle(b) }() CursorStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("5")) ScoreStyle = lipgloss.NewStyle().Bold(false).Foreground(lipgloss.Color("8")) TopicTextStyle = lipgloss.NewStyle().Bold(false).Foreground(lipgloss.Color("8")).MarginLeft(4) TopicAuthorStyle = lipgloss.NewStyle().Bold(false).Foreground(lipgloss.Color("8")) LinkStyle = lipgloss.NewStyle().Italic(true).Foreground(lipgloss.Color("1")) ItalicStyle = lipgloss.NewStyle().Italic(true) QuoteStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("2")) TitleStyle = lipgloss.NewStyle().Bold(true) CommentAuthorStyle = lipgloss.NewStyle().Bold(false).Foreground(lipgloss.Color("8")) CommentTextStyle = lipgloss.NewStyle().MarginLeft(4).PaddingBottom(1) )
Functions ¶
func HtmlToText ¶
htmlToText converts a hackernews text message which may contain HTML (like <p> tags) to plain text.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.