]> source.dussan.org Git - gitea.git/commit
Refactor markup package (#32399)
authorwxiaoguang <wxiaoguang@gmail.com>
Mon, 4 Nov 2024 10:59:50 +0000 (18:59 +0800)
committerGitHub <noreply@github.com>
Mon, 4 Nov 2024 10:59:50 +0000 (10:59 +0000)
commit61be51e56baf037aa7902e7cd066b895a10da244
tree1cbf5fed4146977538975ea3d7ce4e302294cba0
parentaf28ce59b8695a8412632c50cf96fdd420215719
Refactor markup package (#32399)

To make the markup package easier to maintain:
1. Split some go files into small files
2. Use a shared util.NopCloser, remove duplicate code
3. Remove unused functions
19 files changed:
modules/gitrepo/gitrepo.go
modules/log/event_writer_console.go
modules/log/event_writer_file.go
modules/markup/html.go
modules/markup/html_commit.go [new file with mode: 0644]
modules/markup/html_email.go [new file with mode: 0644]
modules/markup/html_emoji.go [new file with mode: 0644]
modules/markup/html_issue.go [new file with mode: 0644]
modules/markup/html_link.go
modules/markup/html_mention.go [new file with mode: 0644]
modules/markup/markdown/goldmark.go
modules/markup/markdown/toc.go
modules/markup/markdown/transform_heading.go
modules/markup/render.go [new file with mode: 0644]
modules/markup/render_helper.go [new file with mode: 0644]
modules/markup/render_links.go [new file with mode: 0644]
modules/markup/renderer.go
modules/packages/debian/metadata_test.go
modules/util/io.go