diff options
author | Unknwon <u@gogs.io> | 2017-03-31 16:37:30 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-03-31 16:37:30 -0400 |
commit | 8da16ac302b78c4c6bad90cd5c8765de110c42af (patch) | |
tree | aa2ed0872bd03e4d7f53586dda0efdd60f3a354a /routers/repo/wiki.go | |
parent | 761bb3cf53960485921ad045bae5a79340d66f97 (diff) |
modules/markup: rename Markdown render fucntions
The unified function 'Markdown' accepts both string or []byte type
input and renders to HTML with []byte type.
Diffstat (limited to 'routers/repo/wiki.go')
-rw-r--r-- | routers/repo/wiki.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/wiki.go b/routers/repo/wiki.go index e0c5fdc5..44b5079a 100644 --- a/routers/repo/wiki.go +++ b/routers/repo/wiki.go @@ -107,7 +107,7 @@ func renderWikiPage(ctx *context.Context, isViewPage bool) (*git.Repository, str return nil, "" } if isViewPage { - ctx.Data["content"] = string(markup.Render(data, ctx.Repo.RepoLink, ctx.Repo.Repository.ComposeMetas())) + ctx.Data["content"] = string(markup.Markdown(data, ctx.Repo.RepoLink, ctx.Repo.Repository.ComposeMetas())) } else { ctx.Data["content"] = string(data) } |