diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-14 01:57:25 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-14 01:57:25 -0400 |
commit | f644cefa865c04b440902695ba90114b224c640d (patch) | |
tree | 0046427683c47bbc0487d0d053ee643ffef902c8 /modules/base/markdown.go | |
parent | 190b83e05eb1ade979c0e17314ab892832d62e5b (diff) | |
download | gitea-f644cefa865c04b440902695ba90114b224c640d.tar.gz gitea-f644cefa865c04b440902695ba90114b224c640d.zip |
Finish release
Diffstat (limited to 'modules/base/markdown.go')
-rw-r--r-- | modules/base/markdown.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/base/markdown.go b/modules/base/markdown.go index cc1807750d..95b4b212fd 100644 --- a/modules/base/markdown.go +++ b/modules/base/markdown.go @@ -166,3 +166,7 @@ func RenderMarkdown(rawBytes []byte, urlPrefix string) []byte { // fmt.Println(string(body)) return body } + +func RenderMarkdownString(raw, urlPrefix string) string { + return string(RenderMarkdown([]byte(raw), urlPrefix)) +} |