external

package
v1.22.3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 13 Imported by: 46

Documentation

Index

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

func (p *Renderer) DisplayInIFrame() bool

DisplayInIFrame represents whether render the content with an iframe

func (*Renderer) Extensions added in v1.15.0

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

Extensions returns the supported extensions of the tool

func (*Renderer) Name added in v1.15.0

func (p *Renderer) Name() string

Name returns the external tool name

func (*Renderer) NeedPostProcess added in v1.15.0

func (p *Renderer) NeedPostProcess() bool

NeedPostProcess implements markup.Renderer

func (*Renderer) Render added in v1.15.0

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 added in v1.17.0

func (p *Renderer) SanitizerDisabled() bool

SanitizerDisabled disabled sanitize if return true

func (*Renderer) SanitizerRules added in v1.15.0

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