From 3a9276307c48620c272d0819fcaeef5475e97676 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 31 Mar 2017 17:46:57 -0400 Subject: modules/markup: move common functions to markup.go --- routers/api/v1/misc/markdown.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'routers/api/v1/misc/markdown.go') 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, "")) } -- cgit v1.2.3