Type MarkdownStyle

type MarkdownStyle struct {
	// Size is the body text size. Headings are scaled from it, inline code and
	// code blocks are a point smaller.
	Size float32
	// LineHeight is the distance between the lines of body text.
	LineHeight float32
	// MonoFace is the fixed-pitch family of code.
	MonoFace ui.MonoFace
	// CodeInset keeps this much of the right side of every code block free of
	// text: room for a button the application paints over the block.
	CodeInset float32
	// Highlight, when set, is asked for the colored stretches of every line of a
	// fenced block: language is the block's info string ("bash", "go", ""), line
	// one line of its code. It appends to dst the runs it wants colored, in
	// order, not overlapping, on character boundaries, and returns dst; whatever
	// it leaves out is plain code. It sees one line at a time, so a comment or
	// string that runs over several lines is only colored where the lexer can
	// tell from the line itself. The colors come from MarkdownLook.Code.
	Highlight func(language, line string, dst []MarkdownCodeRun) []MarkdownCodeRun
}

MarkdownStyle sizes the text of a MarkdownView. The zero value is a 13-point body on a 20-point line.