renderer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MdCodeRenderer

type MdCodeRenderer struct {
	Content   []byte
	Options   *Options
	CodeDiffs []*formatter.CodeDiff
	Stat      *Statistic
}

MdCodeRenderer implements github.com/gomarkdown/markdown.Renderer

func NewMdCodeRenderer

func NewMdCodeRenderer(content []byte, options ...Option) *MdCodeRenderer

NewMdCodeRenderer :

func (*MdCodeRenderer) Render

func (cr *MdCodeRenderer) Render(w io.Writer)

Render :

func (*MdCodeRenderer) RenderFooter

func (cr *MdCodeRenderer) RenderFooter(w io.Writer, ast ast.Node)

RenderFooter :

func (*MdCodeRenderer) RenderHeader

func (cr *MdCodeRenderer) RenderHeader(w io.Writer, ast ast.Node)

RenderHeader :

func (*MdCodeRenderer) RenderNode

func (cr *MdCodeRenderer) RenderNode(w io.Writer, node ast.Node, entering bool) ast.WalkStatus

RenderNode renders node

type Option

type Option func(*Options)

Option :

func WithHCLEnabled

func WithHCLEnabled() Option

WithHCLEnabled :

type Options

type Options struct {
	Formatters map[formatter.Lang]formatter.Formatter
}

Options :

type Statistic

type Statistic struct {
	ChangedCount int
}

Statistic gets the details about renderer result

Jump to

Keyboard shortcuts

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