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
- type ConfluenceLinkHTMLRender
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.
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 ¶
func (r *ConfluenceLinkHTMLRender) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)
RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.