diff options
author | Unknwon <u@gogs.io> | 2017-03-31 15:29:43 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-03-31 15:29:43 -0400 |
commit | c1c269d9ef50595475cf4c6728d9b20a6417c490 (patch) | |
tree | 287621c5244c9b11b6e980190fce9bb887d2bf1f /routers/repo/wiki.go | |
parent | 9edac05e05387e335466957ecf3400a19c6ae808 (diff) |
modules: rename markdown -> markup
To further support more markup languages (e.g. Org-mode, AsciiDoc,
reStructuredText), the name 'markdown' is inappropriate.
This is the first step towards more markup language support.
Diffstat (limited to 'routers/repo/wiki.go')
-rw-r--r-- | routers/repo/wiki.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/wiki.go b/routers/repo/wiki.go index df8d78a3..e0c5fdc5 100644 --- a/routers/repo/wiki.go +++ b/routers/repo/wiki.go @@ -15,7 +15,7 @@ import ( "github.com/gogits/gogs/modules/base" "github.com/gogits/gogs/modules/context" "github.com/gogits/gogs/modules/form" - "github.com/gogits/gogs/modules/markdown" + "github.com/gogits/gogs/modules/markup" ) const ( @@ -107,7 +107,7 @@ func renderWikiPage(ctx *context.Context, isViewPage bool) (*git.Repository, str return nil, "" } if isViewPage { - ctx.Data["content"] = string(markdown.Render(data, ctx.Repo.RepoLink, ctx.Repo.Repository.ComposeMetas())) + ctx.Data["content"] = string(markup.Render(data, ctx.Repo.RepoLink, ctx.Repo.Repository.ComposeMetas())) } else { ctx.Data["content"] = string(data) } |