]> source.dussan.org Git - gitea.git/commit
fix: rendering internal file links in org (#29669) (#29705)
authorGiteabot <teabot@gitea.io>
Sun, 10 Mar 2024 17:29:17 +0000 (01:29 +0800)
committerGitHub <noreply@github.com>
Sun, 10 Mar 2024 17:29:17 +0000 (18:29 +0100)
commit93e105a228805314f618d836e5ab8a56fbb62ac8
tree36cb289a48202e366521776cb87dc64a7a398984
parente8b6d28ab994a32b345a08241600a5ebbe0c0a4b
fix: rendering internal file links in org (#29669) (#29705)

Backport #29669 by @ankitrgadiya

The internal links to other files in the repository were not rendering
with the Src Prefix (/src/branch-name/file-path). This commit fixes that
by using the `SrcLink` as base if available.

Resolves #29668

Co-authored-by: Ankit R Gadiya <git@argp.in>
modules/markup/orgmode/orgmode.go
modules/markup/orgmode/orgmode_test.go