mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	Restructure markup & markdown to prepare for multiple markup language… (#2411)
* restructure markup & markdown to prepare for multiple markup languages support * adjust some functions between markdown and markup * fix tests * improve the comments
This commit is contained in:
		@@ -61,13 +61,12 @@ func renderDirectory(ctx *context.Context, treeLink string) {
 | 
			
		||||
			continue
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		tp, ok := markup.ReadmeFileType(entry.Name())
 | 
			
		||||
		if !ok {
 | 
			
		||||
		if !markup.IsReadmeFile(entry.Name()) {
 | 
			
		||||
			continue
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		readmeFile = entry.Blob()
 | 
			
		||||
		if tp != "" {
 | 
			
		||||
		if markup.Type(entry.Name()) != "" {
 | 
			
		||||
			break
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user