1
1
mirror of https://github.com/go-gitea/gitea synced 2025-03-03 01:04:18 +00:00

3 Commits

Author SHA1 Message Date
wxiaoguang
386c1ed908
Refactor HTMLFormat, update chroma render, fix js error ()
A small refactor to improve HTMLFormat, to help to prevent low-level
mistakes.

And fix , fix 
2025-01-08 03:44:32 +00:00
silverwind
626b27bea5
Update go tool dependencies ()
Update all go tool dependencies to latest version. WIP because I think
there are new gopls errors, would like to confirm them on CI first. Here
is from a local run:

```
modules/markup/markdown/goldmark.go:115:37-53: unnecessary type arguments
modules/markup/html.go:45:32-49: unnecessary type arguments
modules/markup/internal/renderinternal.go:20:33-49: unnecessary type arguments
modules/markup/common/linkify.go:27:32-49: unnecessary type arguments
modules/util/time_str.go:28:39-63: unnecessary type arguments
routers/web/repo/pull.go:704:19: impossible condition: non-nil == nil
modules/util/util_test.go:248:14-23: unused parameter: other
```

~~Backport because the `gxz` update might have security benefits.~~
2024-12-19 19:17:55 +01:00
wxiaoguang
8a20fba8eb
Refactor markup render system ()
Remove unmaintainable sanitizer rules. No need to add special "class"
regexp rules anymore, use RenderInternal.SafeAttr instead, more details
(and examples) are in the tests
2024-11-18 13:25:42 +08:00