mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	Backport #31299 Parse base path and tree path so that media links can be correctly created with /media/. Resolves #31294 --------- Co-authored-by: Brecht Van Lommel <brecht@blender.org>
This commit is contained in:
		@@ -25,7 +25,8 @@ type MarkupOption struct {
 | 
			
		||||
	//
 | 
			
		||||
	// in: body
 | 
			
		||||
	Mode string
 | 
			
		||||
	// Context to render
 | 
			
		||||
	// URL path for rendering issue, media and file links
 | 
			
		||||
	// Expected format: /subpath/{user}/{repo}/src/{branch, commit, tag}/{identifier/path}/{file/dir}
 | 
			
		||||
	//
 | 
			
		||||
	// in: body
 | 
			
		||||
	Context string
 | 
			
		||||
@@ -53,7 +54,8 @@ type MarkdownOption struct {
 | 
			
		||||
	//
 | 
			
		||||
	// in: body
 | 
			
		||||
	Mode string
 | 
			
		||||
	// Context to render
 | 
			
		||||
	// URL path for rendering issue, media and file links
 | 
			
		||||
	// Expected format: /subpath/{user}/{repo}/src/{branch, commit, tag}/{identifier/path}/{file/dir}
 | 
			
		||||
	//
 | 
			
		||||
	// in: body
 | 
			
		||||
	Context string
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user