func Parse(p Parser, plat platform.Platform)
Parse takes a Parser interface and the current platform of the document that is to be parsed and the parses the internal lines writing to the internal buffer of the parser.
type Page interface { Print() }
Page provides the Print method for the final generated output of a TLDR page.
func New(file *os.File, plat platform.Platform) Page
New creates a parsed TLDR page. It parsers the provided file and returns the parsed TLDR page.
type Parser interface { Write(p []byte) Lines() [][]byte Header() []byte Description(line []byte) []byte Example(line []byte) []byte Syntax(line []byte) []byte Variable(line []byte) []byte }
Parser provides the interface for parsing a TLDR page.