Documentation ¶
Index ¶
- Constants
- func NewConfluenceCodeBlockHTMLRender(opts ...html.Option) renderer.NodeRenderer
- func NewConfluenceFencedCodeBlockHTMLRender(opts ...html.Option) renderer.NodeRenderer
- func RenderImageAttributes(w util.BufWriter, node ast.Node, filter util.BytesFilter)
- type ConfluenceCodeBlockHTMLRender
- type ConfluenceFencedCodeBlockHTMLRender
- type ConfluenceImageHTMLRender
Constants ¶
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 ¶
RenderImageAttributes renders an Image's given attributes.
Types ¶
type ConfluenceCodeBlockHTMLRender ¶
ConfluenceCodeBlockHTMLRender is a renderer.NodeRenderer implementation that renders KindCodeBlock nodes.
func (*ConfluenceCodeBlockHTMLRender) RegisterFuncs ¶
func (r *ConfluenceCodeBlockHTMLRender) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)
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 ¶
func (r *ConfluenceFencedCodeBlockHTMLRender) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)
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 ¶
func (r *ConfluenceImageHTMLRender) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)
RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.