1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-10-29 08:17:31 -04:00
gitea/routers/api/v1
Brecht Van Lommel 84daddc2fa
Editor preview support for external renderers (#23333)
Remove `[repository.editor] PREVIEWABLE_FILE_MODES` setting that seemed
like it was intended to support this but did not work. Instead, whenever
viewing a file shows a preview, also have a Preview tab in the file
editor.

Add new `/markup` web and API endpoints with `comment`, `gfm`,
`markdown` and new `file` mode that uses a file path to determine the
renderer.

Remove `/markdown` web endpoint but keep the API for backwards and
GitHub compatibility.

## ⚠️ BREAKING ⚠️

The `[repository.editor] PREVIEWABLE_FILE_MODES` setting was removed.
This setting served no practical purpose and was not working correctly.
Instead a preview tab is always shown in the file editor when supported.

---------

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2023-03-24 14:12:23 +08:00
..
activitypub Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
admin Add login name and source id for admin user searching API (#23376) 2023-03-15 19:53:01 +08:00
misc Editor preview support for external renderers (#23333) 2023-03-24 14:12:23 +08:00
notify Move convert package to services (#22264) 2022-12-29 10:57:15 +08:00
org Add user webhooks (#21563) 2023-03-10 08:28:32 -06:00
packages Add Swift package registry (#22404) 2023-03-13 15:28:39 -05:00
repo Match api migration behavior to web behavior (#23552) 2023-03-19 02:29:14 -04:00
settings Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
swagger Editor preview support for external renderers (#23333) 2023-03-24 14:12:23 +08:00
user Use context for RepositoryList.LoadAttributes (#23435) 2023-03-13 11:31:41 +00:00
utils Add user webhooks (#21563) 2023-03-10 08:28:32 -06:00
api.go Editor preview support for external renderers (#23333) 2023-03-24 14:12:23 +08:00
auth_windows.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
auth.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00