render

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: AGPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checkbox

func Checkbox(content string, checkboxNb int) (string, error)

func MarkdownString added in v1.7.0

func MarkdownString(content string) (string, error)

Types

type RenderedFile

type RenderedFile struct {
	*git.File
	Type  string   `json:"type"`
	Lines []string `json:"-"`
	HTML  string   `json:"-"`
}

func HighlightFile

func HighlightFile(file *git.File) (RenderedFile, error)

func HighlightFiles

func HighlightFiles(files []*git.File) []RenderedFile

func MarkdownFile

func MarkdownFile(file *git.File) (RenderedFile, error)

func RenderSvgFile added in v1.8.0

func RenderSvgFile(file *git.File) RenderedFile

type RenderedGist

type RenderedGist struct {
	*db.Gist
	Lines []string
	HTML  string
}

func HighlightGistPreview

func HighlightGistPreview(gist *db.Gist) (RenderedGist, error)

func MarkdownGistPreview

func MarkdownGistPreview(gist *db.Gist) (RenderedGist, error)

Jump to

Keyboard shortcuts

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