renderer

package
v0.0.0-...-fb722fa Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LanguageStringConfluenceMacro string = "CONFLUENCE-MACRO"

	MacroContentKeyPlainTextBody string = "plain-text-body"
	MacroContentKeyRichTextBody  string = "rich-text-body"
)

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
	MacroContentKeys map[string]struct{}
}

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
y or Y : Canonical URL