Versions in this module Expand all Collapse all v0 v0.9.99 Oct 17, 2016 v0.9.97 Nov 2, 2016 Changes in this version + const ISSUE_NAME_STYLE_ALPHANUMERIC + const ISSUE_NAME_STYLE_NUMERIC + var CommitPattern = regexp.MustCompile(`(\s|^)https?.*commit/[0-9a-zA-Z]+(#+[0-9a-zA-Z-]*)?`) + var IssueAlphanumericPattern = regexp.MustCompile(`( |^|\()[A-Z]{1,10}-[1-9][0-9]*\b`) + var IssueFullPattern = regexp.MustCompile(`(\s|^)https?.*issues/[0-9]+(#+[0-9a-zA-Z-]*)?`) + var IssueNumericPattern = regexp.MustCompile(`( |^|\()#[0-9]+\b`) + var MentionPattern = regexp.MustCompile(`(\s|^|\W)@[0-9a-zA-Z-_\.]+`) + var Sanitizer = bluemonday.UGCPolicy() + var Sha1CurrentPattern = regexp.MustCompile(`\b[0-9a-f]{40}\b`) + func BuildSanitizer() + func FindAllMentions(content string) []string + func IsMarkdownFile(name string) bool + func IsReadmeFile(name string) bool + func PostProcess(rawHtml []byte, urlPrefix string, metas map[string]string) []byte + func Render(rawBytes []byte, urlPrefix string, metas map[string]string) []byte + func RenderIssueIndexPattern(rawBytes []byte, urlPrefix string, metas map[string]string) []byte + func RenderRaw(body []byte, urlPrefix string) []byte + func RenderSha1CurrentPattern(rawBytes []byte, urlPrefix string) []byte + func RenderSpecialLink(rawBytes []byte, urlPrefix string, metas map[string]string) []byte + func RenderString(raw, urlPrefix string, metas map[string]string) string + type Renderer struct + func (options *Renderer) ListItem(out *bytes.Buffer, text []byte, flags int) + func (r *Renderer) AutoLink(out *bytes.Buffer, link []byte, kind int) + func (r *Renderer) Image(out *bytes.Buffer, link []byte, title []byte, alt []byte) + func (r *Renderer) Link(out *bytes.Buffer, link []byte, title []byte, content []byte)