odt

package
v0.0.0-...-66ecaaf Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromMarkdown

func FromMarkdown(w io.Writer, markdown []byte, renderOptions ...RenderOption) error

Types

type RenderOption

type RenderOption func(opts *options)

func WithMonospaceFamily

func WithMonospaceFamily(fontFamily string) RenderOption

func WithProportionalFamily

func WithProportionalFamily(fontFamily string) RenderOption

type Renderer

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

func NewRenderer

func NewRenderer(proportionalFamily, monospaceFamily string) *Renderer

func (*Renderer) Render

func (r *Renderer) Render(w io.Writer, source []byte, n ast.Node) error

Jump to

Keyboard shortcuts

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