external

package
v0.19.4 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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

func (p *Renderer) DisplayInIFrame() bool

DisplayInIFrame represents whether render the content with an iframe

func (*Renderer) Extensions

func (p *Renderer) Extensions() []string

Extensions returns the supported extensions of the tool

func (*Renderer) Name

func (p *Renderer) Name() string

Name returns the external tool name

func (*Renderer) NeedPostProcess

func (p *Renderer) NeedPostProcess() bool

NeedPostProcess implements markup.Renderer

func (*Renderer) Render

func (p *Renderer) Render(ctx *markup.RenderContext, input io.Reader, output io.Writer) error

Render renders the data of the document to HTML via the external tool.

func (*Renderer) SanitizerDisabled

func (p *Renderer) SanitizerDisabled() bool

SanitizerDisabled disabled sanitize if return true

func (*Renderer) SanitizerRules

func (p *Renderer) SanitizerRules() []setting.MarkupSanitizerRule

SanitizerRules implements markup.Renderer

Jump to

Keyboard shortcuts

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