diff options
author | John Olheiser <john.olheiser@gmail.com> | 2022-08-30 21:15:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-30 21:15:45 -0500 |
commit | a48d6ba4b4be4207a2c78c36b095fb69938e5ae5 (patch) | |
tree | 6b77af95e14bb9216b6b5dca321a5804a63cfced /modules/markup | |
parent | 3edc14b687626f5ca1b4ecbe1d0d400b058f8dac (diff) | |
download | gitea-a48d6ba4b4be4207a2c78c36b095fb69938e5ae5.tar.gz gitea-a48d6ba4b4be4207a2c78c36b095fb69938e5ae5.zip |
Go 1.19 format (#20758)
* 1.19 gofumpt
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Change CSV test
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Commit whitespace fixes from @zeripath
Co-authored-by: zeripath <art27@cantab.net>
* Update emoji
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* bump swagger & fix generate-swagger
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'modules/markup')
-rw-r--r-- | modules/markup/mdstripper/mdstripper.go | 4 |
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( |