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

type Heading

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

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

func newATXHeading(p *parseState, s line) (line, bool) {}

// extractID removes an ID attribute from s if one is present.
// It returns the attribute value and the resulting string.
// The attribute has the form "{#...}", where the "..." can contain
// any character other than '}'.
// The attribute must be followed only by whitespace.
func extractID(p *parseState, s string) (id, s2 string) {}

func newSetextHeading(p *parseState, s line) (line, bool) {}

func (s *line) trimHeading(width *int) bool {}

func (s *line) trimSetext(n *int) bool {}