render

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: AGPL-3.0 Imports: 29 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 CSVFile added in v1.11.0

type CSVFile struct {
	*git.File
	Type   string     `json:"type"`
	Header []string   `json:"-"`
	Rows   [][]string `json:"-"`
}

func (CSVFile) InternalType added in v1.11.1

func (r CSVFile) InternalType() string

type HighlightedFile added in v1.11.0

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

func (HighlightedFile) InternalType added in v1.11.1

func (r HighlightedFile) InternalType() string

type NonHighlightedFile added in v1.11.0

type NonHighlightedFile struct {
	*git.File
	Type string `json:"type"`
}

func (NonHighlightedFile) InternalType added in v1.11.1

func (r NonHighlightedFile) InternalType() string

type RenderedFile

type RenderedFile interface {
	InternalType() string
}

func RenderFiles added in v1.11.0

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

type RenderedGist

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

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