mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 08:02:27 -05:00 
			
		
		
		
	[chore]: Bump github.com/yuin/goldmark from 1.6.0 to 1.7.0 (#2603)
This commit is contained in:
		
					parent
					
						
							
								8692cc1f36
							
						
					
				
			
			
				commit
				
					
						a482cb59f2
					
				
			
		
					 10 changed files with 62 additions and 61 deletions
				
			
		
							
								
								
									
										8
									
								
								vendor/github.com/yuin/goldmark/extension/linkify.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								vendor/github.com/yuin/goldmark/extension/linkify.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -66,10 +66,12 @@ func (o *withLinkifyAllowedProtocols) SetLinkifyOption(p *LinkifyConfig) { | |||
| // WithLinkifyAllowedProtocols is a functional option that specify allowed | ||||
| // protocols in autolinks. Each protocol must end with ':' like | ||||
| // 'http:' . | ||||
| func WithLinkifyAllowedProtocols(value [][]byte) LinkifyOption { | ||||
| 	return &withLinkifyAllowedProtocols{ | ||||
| 		value: value, | ||||
| func WithLinkifyAllowedProtocols[T []byte | string](value []T) LinkifyOption { | ||||
| 	opt := &withLinkifyAllowedProtocols{} | ||||
| 	for _, v := range value { | ||||
| 		opt.value = append(opt.value, []byte(v)) | ||||
| 	} | ||||
| 	return opt | ||||
| } | ||||
| 
 | ||||
| type withLinkifyURLRegexp struct { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue