renderer

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package renderer converts parsed ast.Node Markdown to HTML. Images are resized and saved to a directory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Must

func New

func New(withOptions ...Option) (_ renderer.Renderer, err error)

Types

type Option

type Option func(*options) error

func WithPictureProvider

func WithPictureProvider(p picture.Provider) Option

func WithPictureProviderOptions

func WithPictureProviderOptions(withOptions ...picture.Option) Option

type Renderer

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

func (*Renderer) PathHash

func (r *Renderer) PathHash(p string) string

func (*Renderer) RegisterFuncs

func (r *Renderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)

Jump to

Keyboard shortcuts

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