You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/services/context
wxiaoguang 3f9c3e7bc3
Refactor render system (#32492)
There were too many patches to the Render system, it's really difficult
to make further improvements.

This PR clears the legacy problems and fix TODOs.

1. Rename `RenderContext.Type` to `RenderContext.MarkupType` to clarify
its usage.
2. Use `ContentMode` to replace `meta["mode"]` and `IsWiki`, to clarify
the rendering behaviors.
3. Use "wiki" mode instead of "mode=gfm + wiki=true"
4. Merge `renderByType` and `renderByFile`
5. Add more comments

----

The problem of "mode=document": in many cases it is not set, so many
non-comment places use comment's hard line break incorrectly
3 months ago
..
upload Include file extension checks in attachment API (#32151) 3 months ago
access_log.go Move context from modules to services (#29440) 11 months ago
api.go Refactor RepoRefByType (#32413) 3 months ago
api_org.go Move context from modules to services (#29440) 11 months ago
api_test.go Move context from modules to services (#29440) 11 months ago
base.go Fix LFS route mock, realm, middleware names (#32488) 3 months ago
base_test.go Use strict protocol check when redirect (#29642) 11 months ago
captcha.go Refactor cache and disable go-chi cache (#30417) 10 months ago
context.go Fix LFS route mock, realm, middleware names (#32488) 3 months ago
context_cookie.go Move context from modules to services (#29440) 11 months ago
context_model.go Move context from modules to services (#29440) 11 months ago
context_request.go Move context from modules to services (#29440) 11 months ago
context_response.go Refactor AppURL usage (#30885) 9 months ago
context_template.go Move context from modules to services (#29440) 11 months ago
context_test.go Refactor external URL detection (#29973) 11 months ago
csrf.go Refactor CSRF token (#32216) 4 months ago
org.go Refactor render system (#32492) 3 months ago
package.go Refactor names (#31405) 8 months ago
pagination.go Remove AddParamIfExist(AddParam) (#29841) 11 months ago
permission.go Allow maintainers to view and edit files of private repos when "Allow maintainers to edit" is enabled (#32215) 4 months ago
private.go Move context from modules to services (#29440) 11 months ago
repo.go Refactor RepoRefByType (#32413) 3 months ago
response.go Move context from modules to services (#29440) 11 months ago
user.go Refactor names (#31405) 8 months ago
utils.go Move context from modules to services (#29440) 11 months ago
xsrf.go Move context from modules to services (#29440) 11 months ago
xsrf_test.go Move context from modules to services (#29440) 11 months ago