render

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: AGPL-3.0 Imports: 23 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)

Types

type CheckboxTransformer

type CheckboxTransformer struct{}

func (*CheckboxTransformer) Transform

func (t *CheckboxTransformer) Transform(node *ast.Document, _ text.Reader, _ parser.Context)

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)

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