]> source.dussan.org Git - gitea.git/commit
Restructure markup & markdown to prepare for multiple markup languageā€¦ (#2411)
authorLunny Xiao <xiaolunwen@gmail.com>
Sat, 16 Sep 2017 17:17:57 +0000 (01:17 +0800)
committerLauris BH <lauris@nix.lv>
Sat, 16 Sep 2017 17:17:57 +0000 (20:17 +0300)
commit52e11b24bf5e395d83ea58c1b0fd6922efe16add
treef00c9da35c1f2afc3446b8607217e4d4315959ec
parent911ca0215377b34559f2304a22dce863e219b255
Restructure markup & markdown to prepare for multiple markup languageā€¦ (#2411)

* restructure markup & markdown to prepare for multiple markup languages support

* adjust some functions between markdown and markup

* fix tests

* improve the comments
21 files changed:
models/issue_comment.go
models/issue_mail.go
models/mail.go
models/migrations/v16.go
models/repo.go
models/repo_test.go
modules/markdown/markdown.go
modules/markdown/markdown_test.go
modules/markdown/sanitizer.go [deleted file]
modules/markdown/sanitizer_test.go [deleted file]
modules/markup/html.go [new file with mode: 0644]
modules/markup/html_test.go [new file with mode: 0644]
modules/markup/markup.go
modules/markup/markup_test.go
modules/markup/sanitizer.go [new file with mode: 0644]
modules/markup/sanitizer_test.go [new file with mode: 0644]
modules/templates/helper.go
routers/api/v1/misc/markdown.go
routers/api/v1/misc/markdown_test.go
routers/init.go
routers/repo/view.go