aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-11-27 00:46:02 +0800
committerGitHub <noreply@github.com>2024-11-26 16:46:02 +0000
commitb6ce2d6dc9db16227c523b2d0a39a231e5d38945 (patch)
tree7c1b9ee8fe75f1a9020ca321ee9112cafb28f938 /tests
parent87bb5ed0bcaeb52ccb97ccdd2fadc92663b6f41e (diff)
downloadgitea-b6ce2d6dc9db16227c523b2d0a39a231e5d38945.tar.gz
gitea-b6ce2d6dc9db16227c523b2d0a39a231e5d38945.zip
Refactor markup render system (#32645)
This PR mainly removes some global variables, moves some code and renames some functions to make code clearer. This PR also removes a testing-only option ForceHardLineBreak during refactoring since the behavior is clear now.
Diffstat (limited to 'tests')
-rw-r--r--tests/fuzz/fuzz_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fuzz/fuzz_test.go b/tests/fuzz/fuzz_test.go
index 946f7c46f1..01d562d995 100644
--- a/tests/fuzz/fuzz_test.go
+++ b/tests/fuzz/fuzz_test.go
@@ -27,6 +27,6 @@ func FuzzMarkdownRenderRaw(f *testing.F) {
func FuzzMarkupPostProcess(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
setting.AppURL = "http://localhost:3000/"
- markup.PostProcess(newFuzzRenderContext(), bytes.NewReader(data), io.Discard)
+ markup.PostProcessDefault(newFuzzRenderContext(), bytes.NewReader(data), io.Discard)
})
}