md

package
v0.0.0-...-c113bc5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code struct {
	Lang string
	// contains filtered or unexported fields
}

func (*Code) Accept

func (c *Code) Accept(v Visitor)

func (*Code) Children

func (c *Code) Children() []Node
type Header struct {
	Child Node
	Level int
}

func (*Header) Accept

func (h *Header) Accept(v Visitor)

func (*Header) Children

func (h *Header) Children() []Node

type List

type List struct {
	Ordered bool
	// contains filtered or unexported fields
}

func (*List) Accept

func (l *List) Accept(v Visitor)

func (*List) Children

func (l *List) Children() []Node

type Node

type Node interface {
	Children() []Node
	Accept(Visitor)
}

type Root

type Root struct {
	Children []Node
}

func ParseMd

func ParseMd(src string) Root

type Text

type Text struct {
	Value string
}

func (*Text) Accept

func (t *Text) Accept(v Visitor)

func (Text) Children

func (_ Text) Children() []Node

type Visitor

type Visitor interface {
	VisitHeader(*Header)
	VisitCode(*Code)
	VisitList(*List)
	VisitText(*Text)
	VisitRoot(*Root)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL