markdown

package
v0.0.0-...-7a7d34f Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2014 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MentionPattern = regexp.MustCompile(`@[0-9a-zA-Z_]{1,}`)
)

Functions

func IsImageFile

func IsImageFile(data []byte) (string, bool)

func IsMarkdownFile

func IsMarkdownFile(name string) bool

func IsReadmeFile

func IsReadmeFile(name string) bool

func IsTextFile

func IsTextFile(data []byte) (string, bool)

func Render

func Render() handler

func RenderMarkdown

func RenderMarkdown(rawBytes []byte, urlPrefix string) []byte

func RenderMarkdownString

func RenderMarkdownString(raw, urlPrefix string) string
func RenderSpecialLink(rawBytes []byte, urlPrefix string) []byte

Types

type CustomRender

type CustomRender struct {
	gfm.Renderer
	// contains filtered or unexported fields
}
func (options *CustomRender) Link(out *bytes.Buffer, link []byte, title []byte, content []byte)

Jump to

Keyboard shortcuts

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