markdown: github.com/golang-commonmark/markdown Index | Files

package markdown

import "github.com/golang-commonmark/markdown"

Package markdown provides CommonMark-compliant markdown parser and renderer.

Index

Package Files

align.go autolink.go backticks.go balance_pairs.go blockquote.go code.go emphasis.go entity.go escape.go fence.go heading.go helpers.go hr.go html_block.go html_inline.go image.go inline.go lheading.go link.go linkify.go list.go markdown.go newline.go options.go paragraph.go parser_block.go parser_inline.go plugins.go reference.go render.go replacements.go smartquotes.go state_block.go state_core.go state_inline.go strikethrough.go table.go table_fsm.go text.go text_collapse.go token.go urlschema.go util.go writer.go

Constants

const (
    AlignNone = iota
    AlignLeft
    AlignCenter
    AlignRight
)

func Breaks Uses

func Breaks(b bool) option

func HTML Uses

func HTML(b bool) option

func LangPrefix Uses

func LangPrefix(p string) option

func Linkify Uses

func Linkify(b bool) option

func MaxNesting Uses

func MaxNesting(n int) option

func Nofollow Uses

func Nofollow(b bool) option

func Quotes Uses

func Quotes(stringOrArray interface{}) option

func RegisterBlockRule Uses

func RegisterBlockRule(id int, rule BlockRule, terminates []int)

func RegisterCoreRule Uses

func RegisterCoreRule(id int, rule CoreRule)

func RegisterInlineRule Uses

func RegisterInlineRule(id int, rule InlineRule)

func RegisterPostprocessRule Uses

func RegisterPostprocessRule(id int, rule PostprocessRule)

func Tables Uses

func Tables(b bool) option

func Typographer Uses

func Typographer(b bool) option

func XHTMLOutput Uses

func XHTMLOutput(b bool) option

type Align Uses

type Align byte

func (Align) String Uses

func (a Align) String() string

type BlockRule Uses

type BlockRule func(*StateBlock, int, int, bool) bool

type BlockquoteClose Uses

type BlockquoteClose struct {
    Lvl int
}

func (*BlockquoteClose) Block Uses

func (t *BlockquoteClose) Block() bool

func (*BlockquoteClose) Closing Uses

func (t *BlockquoteClose) Closing() bool

func (*BlockquoteClose) Level Uses

func (t *BlockquoteClose) Level() int

func (*BlockquoteClose) Opening Uses

func (t *BlockquoteClose) Opening() bool

func (*BlockquoteClose) SetLevel Uses

func (t *BlockquoteClose) SetLevel(lvl int)

func (*BlockquoteClose) Tag Uses

func (t *BlockquoteClose) Tag() string

type BlockquoteOpen Uses

type BlockquoteOpen struct {
    Map [2]int
    Lvl int
}

func (*BlockquoteOpen) Block Uses

func (t *BlockquoteOpen) Block() bool

func (*BlockquoteOpen) Closing Uses

func (t *BlockquoteOpen) Closing() bool

func (*BlockquoteOpen) Level Uses

func (t *BlockquoteOpen) Level() int

func (*BlockquoteOpen) Opening Uses

func (t *BlockquoteOpen) Opening() bool

func (*BlockquoteOpen) SetLevel Uses

func (t *BlockquoteOpen) SetLevel(lvl int)

func (*BlockquoteOpen) Tag Uses

func (t *BlockquoteOpen) Tag() string

type BulletListClose Uses

type BulletListClose struct {
    Lvl int
}

func (*BulletListClose) Block Uses

func (t *BulletListClose) Block() bool

func (*BulletListClose) Closing Uses

func (t *BulletListClose) Closing() bool

func (*BulletListClose) Level Uses

func (t *BulletListClose) Level() int

func (*BulletListClose) Opening Uses

func (t *BulletListClose) Opening() bool

func (*BulletListClose) SetLevel Uses

func (t *BulletListClose) SetLevel(lvl int)

func (*BulletListClose) Tag Uses

func (t *BulletListClose) Tag() string

type BulletListOpen Uses

type BulletListOpen struct {
    Map [2]int
    Lvl int
}

func (*BulletListOpen) Block Uses

func (t *BulletListOpen) Block() bool

func (*BulletListOpen) Closing Uses

func (t *BulletListOpen) Closing() bool

func (*BulletListOpen) Level Uses

func (t *BulletListOpen) Level() int

func (*BulletListOpen) Opening Uses

func (t *BulletListOpen) Opening() bool

func (*BulletListOpen) SetLevel Uses

func (t *BulletListOpen) SetLevel(lvl int)

func (*BulletListOpen) Tag Uses

func (t *BulletListOpen) Tag() string

type CodeBlock Uses

type CodeBlock struct {
    Content string
    Map     [2]int
    Lvl     int
}

func (*CodeBlock) Block Uses

func (t *CodeBlock) Block() bool

func (*CodeBlock) Closing Uses

func (t *CodeBlock) Closing() bool

func (*CodeBlock) Level Uses

func (t *CodeBlock) Level() int

func (*CodeBlock) Opening Uses

func (t *CodeBlock) Opening() bool

func (*CodeBlock) SetLevel Uses

func (t *CodeBlock) SetLevel(lvl int)

func (*CodeBlock) Tag Uses

func (t *CodeBlock) Tag() string

type CodeInline Uses

type CodeInline struct {
    Content string
    Lvl     int
}

func (*CodeInline) Block Uses

func (t *CodeInline) Block() bool

func (*CodeInline) Closing Uses

func (t *CodeInline) Closing() bool

func (*CodeInline) Level Uses

func (t *CodeInline) Level() int

func (*CodeInline) Opening Uses

func (t *CodeInline) Opening() bool

func (*CodeInline) SetLevel Uses

func (t *CodeInline) SetLevel(lvl int)

func (*CodeInline) Tag Uses

func (t *CodeInline) Tag() string

type CoreRule Uses

type CoreRule func(*StateCore)

type Delimiter Uses

type Delimiter struct {
    Length int
    Jump   int
    Token  int
    Level  int
    End    int
    Open   bool
    Close  bool
    Marker byte
}

type EmphasisClose Uses

type EmphasisClose struct {
    Lvl int
}

func (*EmphasisClose) Block Uses

func (t *EmphasisClose) Block() bool

func (*EmphasisClose) Closing Uses

func (t *EmphasisClose) Closing() bool

func (*EmphasisClose) Level Uses

func (t *EmphasisClose) Level() int

func (*EmphasisClose) Opening Uses

func (t *EmphasisClose) Opening() bool

func (*EmphasisClose) SetLevel Uses

func (t *EmphasisClose) SetLevel(lvl int)

func (*EmphasisClose) Tag Uses

func (t *EmphasisClose) Tag() string

type EmphasisOpen Uses

type EmphasisOpen struct {
    Lvl int
}

func (*EmphasisOpen) Block Uses

func (t *EmphasisOpen) Block() bool

func (*EmphasisOpen) Closing Uses

func (t *EmphasisOpen) Closing() bool

func (*EmphasisOpen) Level Uses

func (t *EmphasisOpen) Level() int

func (*EmphasisOpen) Opening Uses

func (t *EmphasisOpen) Opening() bool

func (*EmphasisOpen) SetLevel Uses

func (t *EmphasisOpen) SetLevel(lvl int)

func (*EmphasisOpen) Tag Uses

func (t *EmphasisOpen) Tag() string

type Environment Uses

type Environment struct {
    References map[string]map[string]string
}

type Fence Uses

type Fence struct {
    Params  string
    Content string
    Map     [2]int
    Lvl     int
}

func (*Fence) Block Uses

func (t *Fence) Block() bool

func (*Fence) Closing Uses

func (t *Fence) Closing() bool

func (*Fence) Level Uses

func (t *Fence) Level() int

func (*Fence) Opening Uses

func (t *Fence) Opening() bool

func (*Fence) SetLevel Uses

func (t *Fence) SetLevel(lvl int)

func (*Fence) Tag Uses

func (t *Fence) Tag() string

type HTMLBlock Uses

type HTMLBlock struct {
    Content string
    Map     [2]int
    Lvl     int
}

func (*HTMLBlock) Block Uses

func (t *HTMLBlock) Block() bool

func (*HTMLBlock) Closing Uses

func (t *HTMLBlock) Closing() bool

func (*HTMLBlock) Level Uses

func (t *HTMLBlock) Level() int

func (*HTMLBlock) Opening Uses

func (t *HTMLBlock) Opening() bool

func (*HTMLBlock) SetLevel Uses

func (t *HTMLBlock) SetLevel(lvl int)

func (*HTMLBlock) Tag Uses

func (t *HTMLBlock) Tag() string

type HTMLInline Uses

type HTMLInline struct {
    Content string
    Lvl     int
}

func (*HTMLInline) Block Uses

func (t *HTMLInline) Block() bool

func (*HTMLInline) Closing Uses

func (t *HTMLInline) Closing() bool

func (*HTMLInline) Level Uses

func (t *HTMLInline) Level() int

func (*HTMLInline) Opening Uses

func (t *HTMLInline) Opening() bool

func (*HTMLInline) SetLevel Uses

func (t *HTMLInline) SetLevel(lvl int)

func (*HTMLInline) Tag Uses

func (t *HTMLInline) Tag() string

type Hardbreak Uses

type Hardbreak struct {
    Lvl int
}

func (*Hardbreak) Block Uses

func (t *Hardbreak) Block() bool

func (*Hardbreak) Closing Uses

func (t *Hardbreak) Closing() bool

func (*Hardbreak) Level Uses

func (t *Hardbreak) Level() int

func (*Hardbreak) Opening Uses

func (t *Hardbreak) Opening() bool

func (*Hardbreak) SetLevel Uses

func (t *Hardbreak) SetLevel(lvl int)

func (*Hardbreak) Tag Uses

func (t *Hardbreak) Tag() string

type HeadingClose Uses

type HeadingClose struct {
    HLevel int
    Lvl    int
}

func (*HeadingClose) Block Uses

func (t *HeadingClose) Block() bool

func (*HeadingClose) Closing Uses

func (t *HeadingClose) Closing() bool

func (*HeadingClose) Level Uses

func (t *HeadingClose) Level() int

func (*HeadingClose) Opening Uses

func (t *HeadingClose) Opening() bool

func (*HeadingClose) SetLevel Uses

func (t *HeadingClose) SetLevel(lvl int)

func (*HeadingClose) Tag Uses

func (t *HeadingClose) Tag() string

type HeadingOpen Uses

type HeadingOpen struct {
    HLevel int
    Map    [2]int
    Lvl    int
}

func (*HeadingOpen) Block Uses

func (t *HeadingOpen) Block() bool

func (*HeadingOpen) Closing Uses

func (t *HeadingOpen) Closing() bool

func (*HeadingOpen) Level Uses

func (t *HeadingOpen) Level() int

func (*HeadingOpen) Opening Uses

func (t *HeadingOpen) Opening() bool

func (*HeadingOpen) SetLevel Uses

func (t *HeadingOpen) SetLevel(lvl int)

func (*HeadingOpen) Tag Uses

func (t *HeadingOpen) Tag() string

type Hr Uses

type Hr struct {
    Map [2]int
    Lvl int
}

func (*Hr) Block Uses

func (t *Hr) Block() bool

func (*Hr) Closing Uses

func (t *Hr) Closing() bool

func (*Hr) Level Uses

func (t *Hr) Level() int

func (*Hr) Opening Uses

func (t *Hr) Opening() bool

func (*Hr) SetLevel Uses

func (t *Hr) SetLevel(lvl int)

func (*Hr) Tag Uses

func (t *Hr) Tag() string

type Image Uses

type Image struct {
    Src    string
    Title  string
    Tokens []Token
    Lvl    int
}

func (*Image) Block Uses

func (t *Image) Block() bool

func (*Image) Closing Uses

func (t *Image) Closing() bool

func (*Image) Level Uses

func (t *Image) Level() int

func (*Image) Opening Uses

func (t *Image) Opening() bool

func (*Image) SetLevel Uses

func (t *Image) SetLevel(lvl int)

func (*Image) Tag Uses

func (t *Image) Tag() string

type Inline Uses

type Inline struct {
    Content  string
    Map      [2]int
    Children []Token
    Lvl      int
}

func (*Inline) Block Uses

func (t *Inline) Block() bool

func (*Inline) Closing Uses

func (t *Inline) Closing() bool

func (*Inline) Level Uses

func (t *Inline) Level() int

func (*Inline) Opening Uses

func (t *Inline) Opening() bool

func (*Inline) SetLevel Uses

func (t *Inline) SetLevel(lvl int)

func (*Inline) Tag Uses

func (t *Inline) Tag() string

type InlineRule Uses

type InlineRule func(*StateInline, bool) bool

type LinkClose Uses

type LinkClose struct {
    Lvl int
}

func (*LinkClose) Block Uses

func (t *LinkClose) Block() bool

func (*LinkClose) Closing Uses

func (t *LinkClose) Closing() bool

func (*LinkClose) Level Uses

func (t *LinkClose) Level() int

func (*LinkClose) Opening Uses

func (t *LinkClose) Opening() bool

func (*LinkClose) SetLevel Uses

func (t *LinkClose) SetLevel(lvl int)

func (*LinkClose) Tag Uses

func (t *LinkClose) Tag() string

type LinkOpen Uses

type LinkOpen struct {
    Href   string
    Title  string
    Target string
    Lvl    int
}

func (*LinkOpen) Block Uses

func (t *LinkOpen) Block() bool

func (*LinkOpen) Closing Uses

func (t *LinkOpen) Closing() bool

func (*LinkOpen) Level Uses

func (t *LinkOpen) Level() int

func (*LinkOpen) Opening Uses

func (t *LinkOpen) Opening() bool

func (*LinkOpen) SetLevel Uses

func (t *LinkOpen) SetLevel(lvl int)

func (*LinkOpen) Tag Uses

func (t *LinkOpen) Tag() string

type ListItemClose Uses

type ListItemClose struct {
    Lvl int
}

func (*ListItemClose) Block Uses

func (t *ListItemClose) Block() bool

func (*ListItemClose) Closing Uses

func (t *ListItemClose) Closing() bool

func (*ListItemClose) Level Uses

func (t *ListItemClose) Level() int

func (*ListItemClose) Opening Uses

func (t *ListItemClose) Opening() bool

func (*ListItemClose) SetLevel Uses

func (t *ListItemClose) SetLevel(lvl int)

func (*ListItemClose) Tag Uses

func (t *ListItemClose) Tag() string

type ListItemOpen Uses

type ListItemOpen struct {
    Map [2]int
    Lvl int
}

func (*ListItemOpen) Block Uses

func (t *ListItemOpen) Block() bool

func (*ListItemOpen) Closing Uses

func (t *ListItemOpen) Closing() bool

func (*ListItemOpen) Level Uses

func (t *ListItemOpen) Level() int

func (*ListItemOpen) Opening Uses

func (t *ListItemOpen) Opening() bool

func (*ListItemOpen) SetLevel Uses

func (t *ListItemOpen) SetLevel(lvl int)

func (*ListItemOpen) Tag Uses

func (t *ListItemOpen) Tag() string

type Markdown Uses

type Markdown struct {
    Block  ParserBlock
    Inline ParserInline
    // contains filtered or unexported fields
}

func New Uses

func New(opts ...option) *Markdown

func (*Markdown) Parse Uses

func (m *Markdown) Parse(src []byte) []Token

func (*Markdown) Render Uses

func (m *Markdown) Render(w io.Writer, src []byte) error

func (*Markdown) RenderToString Uses

func (m *Markdown) RenderToString(src []byte) string

func (*Markdown) RenderTokens Uses

func (m *Markdown) RenderTokens(w io.Writer, tokens []Token) error

func (*Markdown) RenderTokensToString Uses

func (m *Markdown) RenderTokensToString(tokens []Token) string

type OrderedListClose Uses

type OrderedListClose struct {
    Lvl int
}

func (*OrderedListClose) Block Uses

func (t *OrderedListClose) Block() bool

func (*OrderedListClose) Closing Uses

func (t *OrderedListClose) Closing() bool

func (*OrderedListClose) Level Uses

func (t *OrderedListClose) Level() int

func (*OrderedListClose) Opening Uses

func (t *OrderedListClose) Opening() bool

func (*OrderedListClose) SetLevel Uses

func (t *OrderedListClose) SetLevel(lvl int)

func (*OrderedListClose) Tag Uses

func (t *OrderedListClose) Tag() string

type OrderedListOpen Uses

type OrderedListOpen struct {
    Order int
    Map   [2]int
    Lvl   int
}

func (*OrderedListOpen) Block Uses

func (t *OrderedListOpen) Block() bool

func (*OrderedListOpen) Closing Uses

func (t *OrderedListOpen) Closing() bool

func (*OrderedListOpen) Level Uses

func (t *OrderedListOpen) Level() int

func (*OrderedListOpen) Opening Uses

func (t *OrderedListOpen) Opening() bool

func (*OrderedListOpen) SetLevel Uses

func (t *OrderedListOpen) SetLevel(lvl int)

func (*OrderedListOpen) Tag Uses

func (t *OrderedListOpen) Tag() string

type ParagraphClose Uses

type ParagraphClose struct {
    Tight  bool
    Hidden bool
    Lvl    int
}

func (*ParagraphClose) Block Uses

func (t *ParagraphClose) Block() bool

func (*ParagraphClose) Closing Uses

func (t *ParagraphClose) Closing() bool

func (*ParagraphClose) Level Uses

func (t *ParagraphClose) Level() int

func (*ParagraphClose) Opening Uses

func (t *ParagraphClose) Opening() bool

func (*ParagraphClose) SetLevel Uses

func (t *ParagraphClose) SetLevel(lvl int)

func (*ParagraphClose) Tag Uses

func (t *ParagraphClose) Tag() string

type ParagraphOpen Uses

type ParagraphOpen struct {
    Tight  bool
    Hidden bool
    Map    [2]int
    Lvl    int
}

func (*ParagraphOpen) Block Uses

func (t *ParagraphOpen) Block() bool

func (*ParagraphOpen) Closing Uses

func (t *ParagraphOpen) Closing() bool

func (*ParagraphOpen) Level Uses

func (t *ParagraphOpen) Level() int

func (*ParagraphOpen) Opening Uses

func (t *ParagraphOpen) Opening() bool

func (*ParagraphOpen) SetLevel Uses

func (t *ParagraphOpen) SetLevel(lvl int)

func (*ParagraphOpen) Tag Uses

func (t *ParagraphOpen) Tag() string

type ParserBlock Uses

type ParserBlock struct{}

func (ParserBlock) Parse Uses

func (b ParserBlock) Parse(src []byte, md *Markdown, env *Environment) []Token

func (ParserBlock) Tokenize Uses

func (ParserBlock) Tokenize(s *StateBlock, startLine, endLine int)

type ParserInline Uses

type ParserInline struct {
}

func (ParserInline) Parse Uses

func (i ParserInline) Parse(src string, md *Markdown, env *Environment) []Token

func (ParserInline) SkipToken Uses

func (ParserInline) SkipToken(s *StateInline)

func (ParserInline) Tokenize Uses

func (ParserInline) Tokenize(s *StateInline)

type PostprocessRule Uses

type PostprocessRule func(*StateInline)

type RenderOptions Uses

type RenderOptions struct {
    LangPrefix string // CSS language class prefix for fenced blocks
    XHTML      bool   // render as XHTML instead of HTML
    Breaks     bool   // convert \n in paragraphs into <br>
    Nofollow   bool   // add rel="nofollow" to the links
}

type Renderer Uses

type Renderer struct {
    // contains filtered or unexported fields
}

func NewRenderer Uses

func NewRenderer(w io.Writer) *Renderer

func (*Renderer) Render Uses

func (r *Renderer) Render(tokens []Token, options RenderOptions) error

type Softbreak Uses

type Softbreak struct {
    Lvl int
}

func (*Softbreak) Block Uses

func (t *Softbreak) Block() bool

func (*Softbreak) Closing Uses

func (t *Softbreak) Closing() bool

func (*Softbreak) Level Uses

func (t *Softbreak) Level() int

func (*Softbreak) Opening Uses

func (t *Softbreak) Opening() bool

func (*Softbreak) SetLevel Uses

func (t *Softbreak) SetLevel(lvl int)

func (*Softbreak) Tag Uses

func (t *Softbreak) Tag() string

type StateBlock Uses

type StateBlock struct {
    StateCore

    BMarks     []int // offsets of the line beginnings
    EMarks     []int // offsets of the line endings
    TShift     []int // indents for each line
    SCount     []int
    BSCount    []int
    BlkIndent  int  // required block content indent (in a list etc.)
    Line       int  // line index in the source string
    LineMax    int  // number of lines
    Tight      bool // loose or tight mode for lists
    ParentType byte // parent block type
    Level      int
}

func (*StateBlock) IsLineEmpty Uses

func (s *StateBlock) IsLineEmpty(n int) bool

func (*StateBlock) Lines Uses

func (s *StateBlock) Lines(begin, end, indent int, keepLastLf bool) string

func (*StateBlock) PushClosingToken Uses

func (s *StateBlock) PushClosingToken(tok Token)

func (*StateBlock) PushOpeningToken Uses

func (s *StateBlock) PushOpeningToken(tok Token)

func (*StateBlock) PushToken Uses

func (s *StateBlock) PushToken(tok Token)

func (*StateBlock) SkipBytes Uses

func (s *StateBlock) SkipBytes(pos int, b byte) int

func (*StateBlock) SkipBytesBack Uses

func (s *StateBlock) SkipBytesBack(pos int, b byte, min int) int

func (*StateBlock) SkipEmptyLines Uses

func (s *StateBlock) SkipEmptyLines(from int) int

func (*StateBlock) SkipSpaces Uses

func (s *StateBlock) SkipSpaces(pos int) int

func (*StateBlock) SkipSpacesBack Uses

func (s *StateBlock) SkipSpacesBack(pos int, min int) int

type StateCore Uses

type StateCore struct {
    Src    string
    Tokens []Token

    Md  *Markdown
    Env *Environment
    // contains filtered or unexported fields
}

type StateInline Uses

type StateInline struct {
    StateCore

    Pos          int
    PosMax       int
    Level        int
    Pending      bytes.Buffer
    PendingLevel int
    Delimiters   []Delimiter

    Cache map[int]int
}

func (*StateInline) PushClosingToken Uses

func (s *StateInline) PushClosingToken(tok Token)

func (*StateInline) PushOpeningToken Uses

func (s *StateInline) PushOpeningToken(tok Token)

func (*StateInline) PushPending Uses

func (s *StateInline) PushPending()

func (*StateInline) PushToken Uses

func (s *StateInline) PushToken(tok Token)

type StrikethroughClose Uses

type StrikethroughClose struct {
    Lvl int
}

func (*StrikethroughClose) Block Uses

func (t *StrikethroughClose) Block() bool

func (*StrikethroughClose) Closing Uses

func (t *StrikethroughClose) Closing() bool

func (*StrikethroughClose) Level Uses

func (t *StrikethroughClose) Level() int

func (*StrikethroughClose) Opening Uses

func (t *StrikethroughClose) Opening() bool

func (*StrikethroughClose) SetLevel Uses

func (t *StrikethroughClose) SetLevel(lvl int)

func (*StrikethroughClose) Tag Uses

func (t *StrikethroughClose) Tag() string

type StrikethroughOpen Uses

type StrikethroughOpen struct {
    Lvl int
}

func (*StrikethroughOpen) Block Uses

func (t *StrikethroughOpen) Block() bool

func (*StrikethroughOpen) Closing Uses

func (t *StrikethroughOpen) Closing() bool

func (*StrikethroughOpen) Level Uses

func (t *StrikethroughOpen) Level() int

func (*StrikethroughOpen) Opening Uses

func (t *StrikethroughOpen) Opening() bool

func (*StrikethroughOpen) SetLevel Uses

func (t *StrikethroughOpen) SetLevel(lvl int)

func (*StrikethroughOpen) Tag Uses

func (t *StrikethroughOpen) Tag() string

type StrongClose Uses

type StrongClose struct {
    Lvl int
}

func (*StrongClose) Block Uses

func (t *StrongClose) Block() bool

func (*StrongClose) Closing Uses

func (t *StrongClose) Closing() bool

func (*StrongClose) Level Uses

func (t *StrongClose) Level() int

func (*StrongClose) Opening Uses

func (t *StrongClose) Opening() bool

func (*StrongClose) SetLevel Uses

func (t *StrongClose) SetLevel(lvl int)

func (*StrongClose) Tag Uses

func (t *StrongClose) Tag() string

type StrongOpen Uses

type StrongOpen struct {
    Lvl int
}

func (*StrongOpen) Block Uses

func (t *StrongOpen) Block() bool

func (*StrongOpen) Closing Uses

func (t *StrongOpen) Closing() bool

func (*StrongOpen) Level Uses

func (t *StrongOpen) Level() int

func (*StrongOpen) Opening Uses

func (t *StrongOpen) Opening() bool

func (*StrongOpen) SetLevel Uses

func (t *StrongOpen) SetLevel(lvl int)

func (*StrongOpen) Tag Uses

func (t *StrongOpen) Tag() string

type TableClose Uses

type TableClose struct {
    Lvl int
}

func (*TableClose) Block Uses

func (t *TableClose) Block() bool

func (*TableClose) Closing Uses

func (t *TableClose) Closing() bool

func (*TableClose) Level Uses

func (t *TableClose) Level() int

func (*TableClose) Opening Uses

func (t *TableClose) Opening() bool

func (*TableClose) SetLevel Uses

func (t *TableClose) SetLevel(lvl int)

func (*TableClose) Tag Uses

func (t *TableClose) Tag() string

type TableOpen Uses

type TableOpen struct {
    Map [2]int
    Lvl int
}

func (*TableOpen) Block Uses

func (t *TableOpen) Block() bool

func (*TableOpen) Closing Uses

func (t *TableOpen) Closing() bool

func (*TableOpen) Level Uses

func (t *TableOpen) Level() int

func (*TableOpen) Opening Uses

func (t *TableOpen) Opening() bool

func (*TableOpen) SetLevel Uses

func (t *TableOpen) SetLevel(lvl int)

func (*TableOpen) Tag Uses

func (t *TableOpen) Tag() string

type TbodyClose Uses

type TbodyClose struct {
    Lvl int
}

func (*TbodyClose) Block Uses

func (t *TbodyClose) Block() bool

func (*TbodyClose) Closing Uses

func (t *TbodyClose) Closing() bool

func (*TbodyClose) Level Uses

func (t *TbodyClose) Level() int

func (*TbodyClose) Opening Uses

func (t *TbodyClose) Opening() bool

func (*TbodyClose) SetLevel Uses

func (t *TbodyClose) SetLevel(lvl int)

func (*TbodyClose) Tag Uses

func (t *TbodyClose) Tag() string

type TbodyOpen Uses

type TbodyOpen struct {
    Map [2]int
    Lvl int
}

func (*TbodyOpen) Block Uses

func (t *TbodyOpen) Block() bool

func (*TbodyOpen) Closing Uses

func (t *TbodyOpen) Closing() bool

func (*TbodyOpen) Level Uses

func (t *TbodyOpen) Level() int

func (*TbodyOpen) Opening Uses

func (t *TbodyOpen) Opening() bool

func (*TbodyOpen) SetLevel Uses

func (t *TbodyOpen) SetLevel(lvl int)

func (*TbodyOpen) Tag Uses

func (t *TbodyOpen) Tag() string

type TdClose Uses

type TdClose struct {
    Lvl int
}

func (*TdClose) Block Uses

func (t *TdClose) Block() bool

func (*TdClose) Closing Uses

func (t *TdClose) Closing() bool

func (*TdClose) Level Uses

func (t *TdClose) Level() int

func (*TdClose) Opening Uses

func (t *TdClose) Opening() bool

func (*TdClose) SetLevel Uses

func (t *TdClose) SetLevel(lvl int)

func (*TdClose) Tag Uses

func (t *TdClose) Tag() string

type TdOpen Uses

type TdOpen struct {
    Align Align
    Map   [2]int
    Lvl   int
}

func (*TdOpen) Block Uses

func (t *TdOpen) Block() bool

func (*TdOpen) Closing Uses

func (t *TdOpen) Closing() bool

func (*TdOpen) Level Uses

func (t *TdOpen) Level() int

func (*TdOpen) Opening Uses

func (t *TdOpen) Opening() bool

func (*TdOpen) SetLevel Uses

func (t *TdOpen) SetLevel(lvl int)

func (*TdOpen) Tag Uses

func (t *TdOpen) Tag() string

type Text Uses

type Text struct {
    Content string
    Lvl     int
}

func (*Text) Block Uses

func (t *Text) Block() bool

func (*Text) Closing Uses

func (t *Text) Closing() bool

func (*Text) Level Uses

func (t *Text) Level() int

func (*Text) Opening Uses

func (t *Text) Opening() bool

func (*Text) SetLevel Uses

func (t *Text) SetLevel(lvl int)

func (*Text) Tag Uses

func (t *Text) Tag() string

type ThClose Uses

type ThClose struct {
    Lvl int
}

func (*ThClose) Block Uses

func (t *ThClose) Block() bool

func (*ThClose) Closing Uses

func (t *ThClose) Closing() bool

func (*ThClose) Level Uses

func (t *ThClose) Level() int

func (*ThClose) Opening Uses

func (t *ThClose) Opening() bool

func (*ThClose) SetLevel Uses

func (t *ThClose) SetLevel(lvl int)

func (*ThClose) Tag Uses

func (t *ThClose) Tag() string

type ThOpen Uses

type ThOpen struct {
    Align Align
    Map   [2]int
    Lvl   int
}

func (*ThOpen) Block Uses

func (t *ThOpen) Block() bool

func (*ThOpen) Closing Uses

func (t *ThOpen) Closing() bool

func (*ThOpen) Level Uses

func (t *ThOpen) Level() int

func (*ThOpen) Opening Uses

func (t *ThOpen) Opening() bool

func (*ThOpen) SetLevel Uses

func (t *ThOpen) SetLevel(lvl int)

func (*ThOpen) Tag Uses

func (t *ThOpen) Tag() string

type TheadClose Uses

type TheadClose struct {
    Lvl int
}

func (*TheadClose) Block Uses

func (t *TheadClose) Block() bool

func (*TheadClose) Closing Uses

func (t *TheadClose) Closing() bool

func (*TheadClose) Level Uses

func (t *TheadClose) Level() int

func (*TheadClose) Opening Uses

func (t *TheadClose) Opening() bool

func (*TheadClose) SetLevel Uses

func (t *TheadClose) SetLevel(lvl int)

func (*TheadClose) Tag Uses

func (t *TheadClose) Tag() string

type TheadOpen Uses

type TheadOpen struct {
    Map [2]int
    Lvl int
}

func (*TheadOpen) Block Uses

func (t *TheadOpen) Block() bool

func (*TheadOpen) Closing Uses

func (t *TheadOpen) Closing() bool

func (*TheadOpen) Level Uses

func (t *TheadOpen) Level() int

func (*TheadOpen) Opening Uses

func (t *TheadOpen) Opening() bool

func (*TheadOpen) SetLevel Uses

func (t *TheadOpen) SetLevel(lvl int)

func (*TheadOpen) Tag Uses

func (t *TheadOpen) Tag() string

type Token Uses

type Token interface {
    Tag() string
    Opening() bool
    Closing() bool
    Block() bool
    Level() int
    SetLevel(lvl int)
}

type TrClose Uses

type TrClose struct {
    Lvl int
}

func (*TrClose) Block Uses

func (t *TrClose) Block() bool

func (*TrClose) Closing Uses

func (t *TrClose) Closing() bool

func (*TrClose) Level Uses

func (t *TrClose) Level() int

func (*TrClose) Opening Uses

func (t *TrClose) Opening() bool

func (*TrClose) SetLevel Uses

func (t *TrClose) SetLevel(lvl int)

func (*TrClose) Tag Uses

func (t *TrClose) Tag() string

type TrOpen Uses

type TrOpen struct {
    Map [2]int
    Lvl int
}

func (*TrOpen) Block Uses

func (t *TrOpen) Block() bool

func (*TrOpen) Closing Uses

func (t *TrOpen) Closing() bool

func (*TrOpen) Level Uses

func (t *TrOpen) Level() int

func (*TrOpen) Opening Uses

func (t *TrOpen) Opening() bool

func (*TrOpen) SetLevel Uses

func (t *TrOpen) SetLevel(lvl int)

func (*TrOpen) Tag Uses

func (t *TrOpen) Tag() string

Package markdown imports 14 packages (graph) and is imported by 35 packages. Updated 2018-09-10. Refresh now. Tools for package owners.