render

package
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Renderers = map[string]Renderer{}

Renderers Register renderers in independent packages by init()

Functions

func Asciidoc

func Asciidoc(content []byte) (string, error)

func FromFile

func FromFile(r Renderer, file io.Reader) (string, error)

func FromPath

func FromPath(r Renderer, root *vfs.DirFS, path string) (string, error)

func Markdown

func Markdown(content []byte) (string, error)

Types

type NotFoundError added in v2.1.0

type NotFoundError struct {
	Path string
}

func (*NotFoundError) Error added in v2.1.0

func (e *NotFoundError) Error() string

type Renderer

type Renderer func(content []byte) (string, error)

Jump to

Keyboard shortcuts

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