gitforge/modules
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
..
actions Improve workflow event triggers (#23613) 2023-03-23 12:04:15 +08:00
activitypub
analyze
auth
avatar
base
cache Improve cache context (#23330) 2023-03-08 11:57:05 -06:00
charset
container
context Improve template error reporting (#23396) 2023-03-20 15:56:48 -05:00
csv Add context when rendering labels or emojis (#23281) 2023-03-05 22:59:05 +01:00
doctor Check LFS/Packages settings in dump and doctor command (#23631) 2023-03-23 20:30:28 +08:00
emoji
eventsource
generate
git Handle files starting with colons in WalkGitLog (#22935) 2023-03-16 11:03:04 -05:00
gitgraph
graceful
hcaptcha
highlight test_env: hardcode major go version in use (#23464) 2023-03-14 16:09:01 -04:00
hostmatcher
html
httpcache Set X-Gitea-Debug header once (#23361) 2023-03-08 15:40:04 -05:00
httplib
indexer
issue/template
json
label Reduce duplicate and useless code in options (#23369) 2023-03-08 17:31:27 +08:00
lfs
log
markup Editor preview support for external renderers (#23333) 2023-03-24 14:12:23 +08:00
mcaptcha
metrics
migration
mirror
nosql
notification
options Introduce path Clean/Join helper functions (#23495) 2023-03-21 16:02:49 -04:00
packages Return repository in npm package metadata endpoint (#23539) 2023-03-17 14:39:19 -04:00
paginator
pprof
private
process
proxy
proxyprotocol
public Introduce path Clean/Join helper functions (#23495) 2023-03-21 16:02:49 -04:00
queue
recaptcha
references
regexplru
repository Fix pull request update showing too many commits with multiple branches (#22856) 2023-03-09 12:14:22 -06:00
secret
session
setting Editor preview support for external renderers (#23333) 2023-03-24 14:12:23 +08:00
sitemap
ssh
storage Introduce path Clean/Join helper functions (#23495) 2023-03-21 16:02:49 -04:00
structs Editor preview support for external renderers (#23333) 2023-03-24 14:12:23 +08:00
svg Keep (add if not existing) xmlns attribute for generated SVG images (#23410) 2023-03-21 13:39:27 +08:00
sync
system
templates Improve template error reporting (#23396) 2023-03-20 15:56:48 -05:00
test
timeutil Make time tooltips interactive (#23526) 2023-03-16 15:40:56 -05:00
translation
turnstile
typesniffer Do not recognize text files as audio (#23355) 2023-03-07 22:40:41 -05:00
updatechecker
upload
uri
user
util Introduce path Clean/Join helper functions (#23495) 2023-03-21 16:02:49 -04:00
validation
watcher
web
webhook