mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 20:36:07 +01:00 
			
		
		
		
	Add option to disable ambiguous unicode characters detection (#28454)
* Close #24483 * Close #28123 * Close #23682 * Close #23149 (maybe more)
This commit is contained in:
		@@ -87,7 +87,7 @@ func Render(ctx *markup.RenderContext, input io.Reader, output io.Writer) error
 | 
			
		||||
			}
 | 
			
		||||
			lexer = chroma.Coalesce(lexer)
 | 
			
		||||
 | 
			
		||||
			if _, err := w.WriteString(highlight.CodeFromLexer(lexer, source)); err != nil {
 | 
			
		||||
			if _, err := w.WriteString(string(highlight.CodeFromLexer(lexer, source))); err != nil {
 | 
			
		||||
				return ""
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user