renderer

package
v0.1.43 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertBytesToSizeString

func ConvertBytesToSizeString(size int64) string

ConvertByesToSizeString converts a byte count to a human readable string.

func Highlight

func Highlight(content, extension, syntaxTheme string) (string, error)

Highlight returns a syntax highlighted string of text.

func ImageToString

func ImageToString(width int, img image.Image) string

ImageToString converts an image to a string representation of an image.

func ReadPdf

func ReadPdf(name string) (string, error)

ReadPdf reads a PDF file given a name.

func RenderMarkdown

func RenderMarkdown(width int, content string) (string, error)

RenderMarkdown renders the markdown content with glamour.

Types

This section is empty.

Jump to

Keyboard shortcuts

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