renderer

package
v1.0.1-0...-9290184 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MPL-2.0 Imports: 11 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.

type ConfluenceLinkHTMLRender

type ConfluenceLinkHTMLRender struct {
	html.Config

	Reprocess bool
	// contains filtered or unexported fields
}

ConfluenceLinkHTMLRender is a renderer.NodeRenderer implementation that renders KindLink nodes.

func NewConfluenceLinkHTMLRender

func NewConfluenceLinkHTMLRender(filePath string, files map[string]string, opts ...html.Option) *ConfluenceLinkHTMLRender

NewConfluenceLinkHTMLRender returns a new ConfluenceLinkHTMLRender.

func (*ConfluenceLinkHTMLRender) RegisterFuncs

RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.

Jump to

Keyboard shortcuts

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