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 ¶
func RegisterRenderers()
RegisterRenderers registers all supported third part renderers according settings
Types ¶
type Renderer ¶
type Renderer struct {
*setting.MarkupRenderer
}
Renderer implements markup.Renderer for external tools
func (*Renderer) DisplayInIFrame ¶
DisplayInIFrame represents whether render the content with an iframe
func (*Renderer) Extensions ¶
Extensions returns the supported extensions of the tool
func (*Renderer) NeedPostProcess ¶
NeedPostProcess implements markup.Renderer
func (*Renderer) SanitizerDisabled ¶
SanitizerDisabled disabled sanitize if return true
func (*Renderer) SanitizerRules ¶
func (p *Renderer) SanitizerRules() []setting.MarkupSanitizerRule
SanitizerRules implements markup.Renderer
Click to show internal directories.
Click to hide internal directories.