mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 03:10:20 +00:00 
			
		
		
		
	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>
This commit is contained in:
		@@ -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(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user