diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-12-04 10:11:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-04 02:11:34 +0000 |
commit | c9e582c6b6cbc7beae66d24b05be6e1d338aa81b (patch) | |
tree | e2212df009376c6bde41296232e414b2388b8ae5 /routers | |
parent | 2f43536c3eb6ba20e43521f5539df8372f225652 (diff) | |
download | gitea-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.go | 2 |
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") |