mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Rewrite markdown rendering to blackfriday v2 and rewrite orgmode rendering to go-org (#8560)
* Rewrite markdown rendering to blackfriday v2.0 * Fix style * Fix go mod with golang 1.13 * Fix blackfriday v2 import * Inital orgmode renderer migration to go-org * Vendor go-org dependency * Ignore errors :/ * Update go-org to latest version * Update test * Fix go-org test * Remove unneeded code * Fix comments * Fix markdown test * Fix blackfriday regression rendering HTML block
This commit is contained in:
		
							
								
								
									
										6
									
								
								vendor/golang.org/x/net/html/token.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								vendor/golang.org/x/net/html/token.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -347,6 +347,7 @@ loop:
 | 
			
		||||
			break loop
 | 
			
		||||
		}
 | 
			
		||||
		if c != '/' {
 | 
			
		||||
			z.raw.end--
 | 
			
		||||
			continue loop
 | 
			
		||||
		}
 | 
			
		||||
		if z.readRawEndTag() || z.err != nil {
 | 
			
		||||
@@ -1067,6 +1068,11 @@ loop:
 | 
			
		||||
 | 
			
		||||
// Raw returns the unmodified text of the current token. Calling Next, Token,
 | 
			
		||||
// Text, TagName or TagAttr may change the contents of the returned slice.
 | 
			
		||||
//
 | 
			
		||||
// The token stream's raw bytes partition the byte stream (up until an
 | 
			
		||||
// ErrorToken). There are no overlaps or gaps between two consecutive token's
 | 
			
		||||
// raw bytes. One implication is that the byte offset of the current token is
 | 
			
		||||
// the sum of the lengths of all previous tokens' raw bytes.
 | 
			
		||||
func (z *Tokenizer) Raw() []byte {
 | 
			
		||||
	return z.buf[z.raw.start:z.raw.end]
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user