markdown

package
v0.0.0-...-a77340a Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(device bitmap.Device, bytes []byte, proportionalFamily, monospaceFamily *font.Family, headingStyles []BlockStyle, paragraphStyle BlockStyle) error

Types

type BlockStyle

type BlockStyle struct {
	PointSize    float64 // The size of the block's font face in points.
	TopMargin    float64 // The top margin of the block in points.
	BottomMargin float64 // The bottom margin of the block in points.
}

BlockStyle describes the style for a block node.

type Renderer

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

func NewRenderer

func NewRenderer(proportionalFamily, monospaceFamily *font.Family, headingStyles []BlockStyle, paragraphStyle BlockStyle) *Renderer

func (*Renderer) Render

func (r *Renderer) Render(device bitmap.Device, source []byte, n ast.Node) error

Jump to

Keyboard shortcuts

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