Versions in this module Expand all Collapse all v0 v0.5.0 Apr 12, 2023 Changes in this version + func DefaultLookupPackage(name string) (importPath string, ok bool) + type Block interface + type Code struct + Text string + type Doc struct + Content []Block + Links []*LinkDef + type DocLink struct + ImportPath string + Name string + Recv string + Text []Text + func (l *DocLink) DefaultURL(baseURL string) string + type Heading struct + Text []Text + func (h *Heading) DefaultID() string + type Italic string + type Link struct + Auto bool + Text []Text + URL string + type LinkDef struct + Text string + URL string + Used bool + type List struct + ForceBlankBefore bool + ForceBlankBetween bool + Items []*ListItem + func (l *List) BlankBefore() bool + func (l *List) BlankBetween() bool + type ListItem struct + Content []Block + Number string + type Paragraph struct + Text []Text + type Parser struct + LookupPackage func(name string) (importPath string, ok bool) + LookupSym func(recv, name string) (ok bool) + Words map[string]string + func (p *Parser) Parse(text string) *Doc + type Plain string + type Printer struct + DocLinkBaseURL string + DocLinkURL func(link *DocLink) string + HeadingID func(h *Heading) string + HeadingLevel int + TextCodePrefix string + TextPrefix string + TextWidth int + func (p *Printer) Comment(d *Doc) []byte + func (p *Printer) HTML(d *Doc) []byte + func (p *Printer) Markdown(d *Doc) []byte + func (p *Printer) Text(d *Doc) []byte + type Text interface