aboutsummaryrefslogtreecommitdiffstats
path: root/modules/markup
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2022-09-22 21:58:31 +0800
committerGitHub <noreply@github.com>2022-09-22 21:58:31 +0800
commit20c135cd468a5c7f84994787ffb8ee0db4d87da9 (patch)
tree0c40a2848c4ae64c0ade79b0825c0bda4deee381 /modules/markup
parent937ef6fa906cd6ea28e181cfa92bacf409a75f69 (diff)
downloadgitea-20c135cd468a5c7f84994787ffb8ee0db4d87da9.tar.gz
gitea-20c135cd468a5c7f84994787ffb8ee0db4d87da9.zip
Use Go 1.19 fmt for Gitea 1.17, sync emoji data (#21239)
The images used by Gitea's drone pipeline were upgraded to Go 1.19.x It causes the lint fails because Go 1.19 uses new code format. This PR partially backport #20758 (including the emoji-data sync), partially fix the format manually.
Diffstat (limited to 'modules/markup')
-rw-r--r--modules/markup/mdstripper/mdstripper.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/markup/mdstripper/mdstripper.go b/modules/markup/mdstripper/mdstripper.go
index 64079194ff..c7f8ee69f1 100644
--- a/modules/markup/mdstripper/mdstripper.go
+++ b/modules/markup/mdstripper/mdstripper.go
@@ -141,7 +141,7 @@ func (r *stripRenderer) AddOptions(...renderer.Option) {
}
// StripMarkdown parses markdown content by removing all markup and code blocks
-// in order to extract links and other references
+// in order to extract links and other references
func StripMarkdown(rawBytes []byte) (string, []string) {
buf, links := StripMarkdownBytes(rawBytes)
return string(buf), links
@@ -153,7 +153,7 @@ var (
)
// StripMarkdownBytes parses markdown content by removing all markup and code blocks
-// in order to extract links and other references
+// in order to extract links and other references
func StripMarkdownBytes(rawBytes []byte) ([]byte, []string) {
once.Do(func() {
gdMarkdown := goldmark.New(