aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-12-04 10:11:34 +0800
committerGitHub <noreply@github.com>2024-12-04 02:11:34 +0000
commitc9e582c6b6cbc7beae66d24b05be6e1d338aa81b (patch)
treee2212df009376c6bde41296232e414b2388b8ae5 /routers
parent2f43536c3eb6ba20e43521f5539df8372f225652 (diff)
downloadgitea-c9e582c6b6cbc7beae66d24b05be6e1d338aa81b.tar.gz
gitea-c9e582c6b6cbc7beae66d24b05be6e1d338aa81b.zip
Refactor markdown editor and use it for milestone description editor (#32688)
Refactor markdown editor to clarify its "preview" behavior and remove jQuery code. Close #15045 --------- Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'routers')
-rw-r--r--routers/web/web.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/web/web.go b/routers/web/web.go
index 5ed046a983..e89d069449 100644
--- a/routers/web/web.go
+++ b/routers/web/web.go
@@ -485,6 +485,8 @@ func registerRoutes(m *web.Router) {
m.Methods("GET, HEAD", "/*", public.FileHandlerFunc())
}, optionsCorsHandler())
+ m.Post("/-/markup", reqSignIn, web.Bind(structs.MarkupOption{}), misc.Markup)
+
m.Group("/explore", func() {
m.Get("", func(ctx *context.Context) {
ctx.Redirect(setting.AppSubURL + "/explore/repos")