console

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2019 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Console

type Console struct {
}

Console implements blackfriday.Render

func (Console) RenderFooter

func (c Console) RenderFooter(w io.Writer, ast *blackfriday.Node)

RenderFooter is a symmetric counterpart of RenderHeader.

func (Console) RenderHeader

func (c Console) RenderHeader(w io.Writer, ast *blackfriday.Node)

RenderHeader method will be passed an entire document tree, in case a particular implementation needs to inspect it to produce output.

The output should be written to the supplied writer w. If your

func (Console) RenderNode

func (c Console) RenderNode(w io.Writer, node *blackfriday.Node, entering bool) blackfriday.WalkStatus

RenderNode is the main rendering method. It will be called once for every leaf node and twice for every non-leaf node (first with entering=true, then with entering=false). The method should write its rendition of the node to the supplied writer w.

Jump to

Keyboard shortcuts

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