mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	@@ -79,6 +79,9 @@ func (g *GiteaASTTransformer) Transform(node *ast.Document, reader text.Reader,
 | 
				
			|||||||
				}
 | 
									}
 | 
				
			||||||
				link = []byte(giteautil.URLJoin(pc.Get(urlPrefixKey).(string), lnk))
 | 
									link = []byte(giteautil.URLJoin(pc.Get(urlPrefixKey).(string), lnk))
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
								if len(link) > 0 && link[0] == '#' {
 | 
				
			||||||
 | 
									link = []byte("#user-content-" + string(link)[1:])
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
			v.Destination = link
 | 
								v.Destination = link
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		return ast.WalkContinue, nil
 | 
							return ast.WalkContinue, nil
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user