Refactor markup code (#31399)

1. use clearer names
2. remove deadcode
3. avoid name shadowing
4. eliminate some lint warnings

(cherry picked from commit 5a7376c0605415e63cb5b3b8f89ead01e567229b)

Conflicts:
	modules/markup/html.go
	simple code divergence, trivial logic
This commit is contained in:
wxiaoguang 2024-06-18 06:56:45 +08:00 committed by Earl Warren
parent 9c48511c69
commit 75bbca68ce
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
3 changed files with 6 additions and 31 deletions

View file

@ -210,7 +210,6 @@ code.gitea.io/gitea/modules/json
StdJSON.Indent
code.gitea.io/gitea/modules/markup
IsSameDomain
GetRendererByType
RenderString
IsMarkupFile