summaryrefslogtreecommitdiffstats
path: root/modules/base/markdown.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/base/markdown.go')
-rw-r--r--modules/base/markdown.go4
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))
+}