render

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: May 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)

func MarkdownString added in v1.7.0

func MarkdownString(content string) (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