mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-06-12 07:38:06 +08:00
Fix and refactor markdown rendering (#32522)
This commit is contained in:
models/repo
modules
markup
html.gohtml_commit.gohtml_email.gohtml_emoji.gohtml_internal_test.gohtml_issue.gohtml_link.gohtml_node.gohtml_test.go
markdown
orgmode
render.gorender_links.gotemplates
routers
templates/repo
@ -10,7 +10,7 @@ import (
|
||||
|
||||
type Links struct {
|
||||
AbsolutePrefix bool // add absolute URL prefix to auto-resolved links like "#issue", but not for pre-provided links and medias
|
||||
Base string // base prefix for pre-provided links and medias (images, videos)
|
||||
Base string // base prefix for pre-provided links and medias (images, videos), usually it is the path to the repo
|
||||
BranchPath string // actually it is the ref path, eg: "branch/features/feat-12", "tag/v1.0"
|
||||
TreePath string // the dir of the file, eg: "doc" if the file "doc/CHANGE.md" is being rendered
|
||||
}
|
||||
|
Reference in New Issue
Block a user