Documentation ¶
Index ¶
- Variables
- func IsImageFile(data []byte) (string, bool)
- func IsMarkdownFile(name string) bool
- func IsReadmeFile(name string) bool
- func IsTextFile(data []byte) (string, bool)
- func Render() handler
- func RenderMarkdown(rawBytes []byte, urlPrefix string) []byte
- func RenderMarkdownString(raw, urlPrefix string) string
- func RenderSpecialLink(rawBytes []byte, urlPrefix string) []byte
- func ShortSha(sha1 string) string
- type CustomRender
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MentionPattern = regexp.MustCompile(`@[0-9a-zA-Z_]{1,}`)
)
Functions ¶
func IsImageFile ¶
func IsMarkdownFile ¶
func IsReadmeFile ¶
func IsTextFile ¶
func RenderMarkdown ¶
func RenderMarkdownString ¶
func RenderSpecialLink ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.