diff --git a/template.go b/template.go index 2112f806..654bdf3f 100644 --- a/template.go +++ b/template.go @@ -23,7 +23,6 @@ func init() { beegoTplFuncMap = make(template.FuncMap) BeeTemplateExt = make([]string, 0) BeeTemplateExt = append(BeeTemplateExt, "tpl", "html") - beegoTplFuncMap["markdown"] = MarkDown beegoTplFuncMap["dateformat"] = DateFormat beegoTplFuncMap["date"] = Date beegoTplFuncMap["compare"] = Compare diff --git a/utils.go b/utils.go index dc1c75fd..c5b27638 100644 --- a/utils.go +++ b/utils.go @@ -2,7 +2,6 @@ package beego import ( "fmt" - "github.com/russross/blackfriday" "html/template" "regexp" "strings" @@ -17,14 +16,6 @@ func webTime(t time.Time) string { return ftime } -// MarkDown parses a string in MarkDown format and returns HTML. Used by the template parser as "markdown" -func MarkDown(raw string) (output template.HTML) { - input := []byte(raw) - bOutput := blackfriday.MarkdownBasic(input) - output = template.HTML(string(bOutput)) - return -} - func Substr(s string, start, length int) string { bt := []rune(s) if start < 0 {