render

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: MIT Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Renderer

type Renderer struct {
	// contains filtered or unexported fields
}

Renderer is responsible for rendering epub content.

func New

func New(content *epub.Package) Renderer

New returns a new epub Renderer.

func (*Renderer) RenderChapter

func (r *Renderer) RenderChapter(ctx context.Context, chapter int, w io.Writer) error

RenderChapter reads in an epub item, parses the content, and writes the rendered output to the given writer.

func (*Renderer) SetTheme

func (r *Renderer) SetTheme(theme config.Theme)

SetTheme sets style options for a Renderer.

Jump to

Keyboard shortcuts

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