markdown

package
v0.1.0-pre Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GlamourMaxWidth = 120
)

Variables

This section is empty.

Functions

func DefaultStyles

func DefaultStyles() gansi.StyleConfig

func Glamourize

func Glamourize(w int, md string) (string, error)

func RenderMarkdown

func RenderMarkdown(content string, width int) (string, error)

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

func New

func New(content string, styles style.Styles, width, widthMargin, height, heightMargin int) Model

func (*Model) GotoTop

func (m *Model) GotoTop()

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) SetSize

func (m *Model) SetSize(w, h int)

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL