Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarkdownString ¶ added in v1.7.0
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 ¶
func HighlightGistPreview ¶
func HighlightGistPreview(gist *db.Gist) (RenderedGist, error)
func MarkdownGistPreview ¶
func MarkdownGistPreview(gist *db.Gist) (RenderedGist, error)
Click to show internal directories.
Click to hide internal directories.