gitea/templates/repo
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
branch
cite
diff Editor preview support for external renderers (#23333) 2023-03-24 14:12:23 +08:00
editor Editor preview support for external renderers (#23333) 2023-03-24 14:12:23 +08:00
find
graph
issue Editor preview support for external renderers (#23333) 2023-03-24 14:12:23 +08:00
migrate
projects Fix incorrect show-modal and show-panel class (#23660) 2023-03-23 12:52:20 -04:00
pulls Fix long name ui issues and label ui issue (#23541) 2023-03-18 17:07:59 +01:00
release Editor preview support for external renderers (#23333) 2023-03-24 14:12:23 +08:00
settings Fix incorrect show-modal and show-panel class (#23660) 2023-03-23 12:52:20 -04:00
wiki Editor preview support for external renderers (#23333) 2023-03-24 14:12:23 +08:00
activity.tmpl
blame.tmpl
branch_dropdown.tmpl
clone_buttons.tmpl
clone_script.tmpl
commit_page.tmpl Use octicon-verified for gpg signatures (#23529) 2023-03-17 01:12:40 -04:00
commit_status.tmpl
commit_statuses.tmpl
commits_list_small.tmpl
commits_list.tmpl
commits_table.tmpl
commits.tmpl
create_helper.tmpl
create.tmpl
empty.tmpl
file_info.tmpl
forks.tmpl
graph.tmpl
header.tmpl
home.tmpl
icon.tmpl
packages.tmpl
search_name.tmpl Allow both fullname and username search when DEFAULT_SHOW_FULL_NAME is true (#23463) 2023-03-16 11:32:25 -05:00
search.tmpl
shabox_badge.tmpl
sub_menu.tmpl Use a general approach to show tooltip, fix temporary tooltip bug (#23574) 2023-03-23 17:56:15 +08:00
unicode_escape_prompt.tmpl
upload.tmpl
user_cards.tmpl
view_file.tmpl
view_list.tmpl
watchers.tmpl