gitea: code.gitea.io/gitea/modules/markup/external Index | Files

package external

import "code.gitea.io/gitea/modules/markup/external"

Index

Package Files

external.go

func RegisterParsers Uses

func RegisterParsers()

RegisterParsers registers all supported third part parsers according settings

type Parser Uses

type Parser struct {
    setting.MarkupParser
}

Parser implements markup.Parser for external tools

func (*Parser) Extensions Uses

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

Extensions returns the supported extensions of the tool

func (*Parser) Name Uses

func (p *Parser) Name() string

Name returns the external tool name

func (*Parser) Render Uses

func (p *Parser) Render(rawBytes []byte, urlPrefix string, metas map[string]string, isWiki bool) []byte

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

Package external imports 10 packages (graph) and is imported by 3 packages. Updated 2019-04-11. Refresh now. Tools for package owners.