md

package module
v0.0.0-...-4ffd054 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLineReader

func NewLineReader(r io.Reader) *lineReader

Types

type Code

type Code string

func (Code) String

func (c Code) String() string

type CodeBlock

type CodeBlock struct {
	Language string
	Code     string
}

func (*CodeBlock) String

func (cb *CodeBlock) String() string

type Element

type Element interface {
	fmt.Stringer
	// contains filtered or unexported methods
}

func Parse

func Parse(r io.Reader) ([]Element, error)
type Header struct {
	Level int
	Text  string
}

func (*Header) String

func (h *Header) String() string
type Link struct {
	Text      string
	Reference string
}

func (Link) String

func (l Link) String() string

type List

type List struct {
	Elements []ListElement
}

func (*List) String

func (h *List) String() string

type ListElement

type ListElement struct {
	Level int
	Text  string
}

func (ListElement) String

func (le ListElement) String() string

type Paragraph

type Paragraph struct {
	TextBlock *TextBlock
}

func (*Paragraph) String

func (p *Paragraph) String() string

type Quote

type Quote struct {
	Text string
}

func (*Quote) String

func (q *Quote) String() string

type Text

type Text string

func (Text) String

func (t Text) String() string

type TextBlock

type TextBlock struct {
	Elements []TextElement
}

func (*TextBlock) String

func (tb *TextBlock) String() string

type TextElement

type TextElement interface {
	fmt.Stringer
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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