diff options
author | Unknwon <u@gogs.io> | 2017-03-31 17:46:57 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-03-31 17:46:57 -0400 |
commit | 3a9276307c48620c272d0819fcaeef5475e97676 (patch) | |
tree | d66ec1e8934681a9adb7fb8418f2f5edde46787f /routers | |
parent | ca6326c937fe1d50e53a357e8fba499f453e7f59 (diff) |
modules/markup: move common functions to markup.go
Diffstat (limited to 'routers')
-rw-r--r-- | routers/api/v1/misc/markdown.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/misc/markdown.go b/routers/api/v1/misc/markdown.go index 4c6251b9..4ef0ddf1 100644 --- a/routers/api/v1/misc/markdown.go +++ b/routers/api/v1/misc/markdown.go @@ -27,7 +27,7 @@ func Markdown(ctx *context.APIContext, form api.MarkdownOption) { case "gfm": ctx.Write(markup.Markdown([]byte(form.Text), form.Context, nil)) default: - ctx.Write(markup.RenderRaw([]byte(form.Text), "")) + ctx.Write(markup.RawMarkdown([]byte(form.Text), "")) } } @@ -38,5 +38,5 @@ func MarkdownRaw(ctx *context.APIContext) { ctx.Error(422, "", err) return } - ctx.Write(markup.RenderRaw(body, "")) + ctx.Write(markup.RawMarkdown(body, "")) } |