mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-11-03 23:12:26 -06:00 
			
		
		
		
	[chore]: Bump github.com/yuin/goldmark from 1.7.0 to 1.7.1 (#2819)
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.7.0 to 1.7.1. - [Release notes](https://github.com/yuin/goldmark/releases) - [Commits](https://github.com/yuin/goldmark/compare/v1.7.0...v1.7.1) --- updated-dependencies: - dependency-name: github.com/yuin/goldmark dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
		
					parent
					
						
							
								4d16c3adaf
							
						
					
				
			
			
				commit
				
					
						15733cddb2
					
				
			
		
					 5 changed files with 16 additions and 6 deletions
				
			
		
							
								
								
									
										9
									
								
								vendor/github.com/yuin/goldmark/renderer/html/html.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								vendor/github.com/yuin/goldmark/renderer/html/html.go
									
										
									
										generated
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -786,7 +786,14 @@ func RenderAttributes(w util.BufWriter, node ast.Node, filter util.BytesFilter)
 | 
			
		|||
		_, _ = w.Write(attr.Name)
 | 
			
		||||
		_, _ = w.WriteString(`="`)
 | 
			
		||||
		// TODO: convert numeric values to strings
 | 
			
		||||
		_, _ = w.Write(util.EscapeHTML(attr.Value.([]byte)))
 | 
			
		||||
		var value []byte
 | 
			
		||||
		switch typed := attr.Value.(type) {
 | 
			
		||||
		case []byte:
 | 
			
		||||
			value = typed
 | 
			
		||||
		case string:
 | 
			
		||||
			value = util.StringToReadOnlyBytes(typed)
 | 
			
		||||
		}
 | 
			
		||||
		_, _ = w.Write(util.EscapeHTML(value))
 | 
			
		||||
		_ = w.WriteByte('"')
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue