Documentation ¶
Index ¶
- func RegisterRenderers()
- type Renderer
- func (p *Renderer) DisplayInIFrame() bool
- func (p *Renderer) Extensions() []string
- func (p *Renderer) Name() string
- func (p *Renderer) NeedPostProcess() bool
- func (p *Renderer) Render(ctx *markup.RenderContext, input io.Reader, output io.Writer) error
- func (p *Renderer) SanitizerDisabled() bool
- func (p *Renderer) SanitizerRules() []setting.MarkupSanitizerRule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRenderers ¶ added in v1.15.0
func RegisterRenderers()
RegisterRenderers registers all supported third part renderers according settings
Types ¶
type Renderer ¶ added in v1.15.0
type Renderer struct {
*setting.MarkupRenderer
}
Renderer implements markup.Renderer for external tools
func (*Renderer) DisplayInIFrame ¶ added in v1.17.0
DisplayInIFrame represents whether render the content with an iframe
func (*Renderer) Extensions ¶ added in v1.15.0
Extensions returns the supported extensions of the tool
func (*Renderer) NeedPostProcess ¶ added in v1.15.0
NeedPostProcess implements markup.Renderer
func (*Renderer) Render ¶ added in v1.15.0
Render renders the data of the document to HTML via the external tool.
func (*Renderer) SanitizerDisabled ¶ added in v1.17.0
SanitizerDisabled disabled sanitize if return true
func (*Renderer) SanitizerRules ¶ added in v1.15.0
func (p *Renderer) SanitizerRules() []setting.MarkupSanitizerRule
SanitizerRules implements markup.Renderer
Click to show internal directories.
Click to hide internal directories.