go/src/cmd/vendor/rsc.io/markdown/parse.go

type Block

type mdState

type Position

func (p Position) Pos() Position {}

type buildState

type blockBuilder

type openBlock

type itemBuilder

func (p *parseState) last() Block {}

func (p *parseState) deleteLast() {}

type Text

func (b *Text) PrintHTML(buf *bytes.Buffer) {}

func (b *Text) printMarkdown(buf *bytes.Buffer, s mdState) {}

type rootBuilder

func (b *rootBuilder) build(p buildState) Block {}

type Document

type Parser

type parseState

func (p *parseState) newText(pos Position, text string) *Text {}

func (p *parseState) blocks() []Block {}

func (p *parseState) pos() Position {}

func (p *Parser) Parse(text string) *Document {}

func (p *Parser) parse(text string) (d *Document, corner bool) {}

func (p *parseState) curB() blockBuilder {}

func (p *parseState) nextB() blockBuilder {}

func (p *parseState) trimStack(depth int) {}

func (p *parseState) addBlock(c blockBuilder) {}

func (p *parseState) doneBlock(b Block) {}

func (p *parseState) para() *paraBuilder {}

func (p *parseState) closeBlock() Block {}

func (p *parseState) link(label string) *Link {}

func (p *parseState) defineLink(label string, link *Link) {}

type line

func (p *parseState) addLine(s line) {}

func (c *rootBuilder) extend(p *parseState, s line) (line, bool) {}

var news

func (s *line) peek() byte {}

func (s *line) skipSpace() {}

func (s *line) trimSpace(min, max int, eolOK bool) bool {}

func (s *line) trim(c byte) bool {}

func (s *line) string() string {}

func trimLeftSpaceTab(s string) string {}

func trimRightSpaceTab(s string) string {}

func trimSpaceTab(s string) string {}

func trimSpace(s string) string {}

func trimSpaceTabNewline(s string) string {}

func (s *line) isBlank() bool {}

func (s *line) eof() bool {}

func (s *line) trimSpaceString() string {}

func (s *line) trimString() string {}

func ToHTML(b Block) string {}

func ToMarkdown(b Block) string {}

func (b *Document) PrintHTML(buf *bytes.Buffer) {}

func (b *Document) printMarkdown(buf *bytes.Buffer, s mdState) {}

func printMarkdownBlocks(bs []Block, buf *bytes.Buffer, s mdState) {}

var blockType

var blocksType

var inlinesType

func printb(buf *bytes.Buffer, b Block, prefix string) {}

func printslice(buf *bytes.Buffer, v reflect.Value, prefix string) {}

func printi(buf *bytes.Buffer, in Inline) {}

func printis(buf *bytes.Buffer, ins []Inline) {}

func dump(b Block) string {}