renderer

package
Version: v1.0.1-0...-e440bea Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfluenceCodeBlockHTMLRender

func NewConfluenceCodeBlockHTMLRender(opts ...html.Option) renderer.NodeRenderer

NewConfluenceCodeBlockHTMLRender returns a new ConfluenceCodeBlockHTMLRender.

func NewConfluenceFencedCodeBlockHTMLRender

func NewConfluenceFencedCodeBlockHTMLRender(opts ...html.Option) renderer.NodeRenderer

NewConfluenceFencedCodeBlockHTMLRender returns a new ConfluenceFencedCodeBlockHTMLRender.

func RenderImageAttributes

func RenderImageAttributes(w util.BufWriter, node ast.Node, filter util.BytesFilter)

RenderImageAttributes renders an Image's given attributes.

Types

type ConfluenceCodeBlockHTMLRender

type ConfluenceCodeBlockHTMLRender struct {
	html.Config
}

ConfluenceCodeBlockHTMLRender is a renderer.NodeRenderer implementation that renders KindCodeBlock nodes.

func (*ConfluenceCodeBlockHTMLRender) RegisterFuncs

RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.

type ConfluenceFencedCodeBlockHTMLRender

type ConfluenceFencedCodeBlockHTMLRender struct {
	html.Config
}

ConfluenceFencedCodeBlockHTMLRender is a renderer.NodeRenderer implementation that renders FencedCodeBlock nodes.

func (*ConfluenceFencedCodeBlockHTMLRender) RegisterFuncs

RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.

type ConfluenceImageHTMLRender

type ConfluenceImageHTMLRender struct {
	html.Config
	Images []string
	// contains filtered or unexported fields
}

ConfluenceImageHTMLRender is a renderer.NodeRenderer implementation that renders KindImage nodes.

func NewConfluenceImageHTMLRender

func NewConfluenceImageHTMLRender(filePath string, opts ...html.Option) *ConfluenceImageHTMLRender

NewConfluenceImageHTMLRender returns a new ConfluenceImageHTMLRender.

func (*ConfluenceImageHTMLRender) RegisterFuncs

RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL