[v7.0/forgejo] Render inline file permalinks
Backport: https://codeberg.org/forgejo/forgejo/pulls/2669
(cherry picked from commit 1d3240887c
)
(cherry picked from commit 781a37fbe1
)
(cherry picked from commit 8309f008c2
)
(cherry picked from commit fae8d9f70d
)
(cherry picked from commit 6721cba75b
)
(cherry picked from commit 562e5cdf32
)
(cherry picked from commit d789d33229
)
(cherry picked from commit 8218e80bfc
)
(cherry picked from commit 10bca456a9
)
(cherry picked from commit db6f6281fc
)
(cherry picked from commit ed8e8a792e
)
(cherry picked from commit d6428f92ce
)
(cherry picked from commit 069d87b80f
)
(cherry picked from commit 2b6546adc9
)
(cherry picked from commit 4c7cb0a5d2
)
(cherry picked from commit 7e0014dd13
)
(cherry picked from commit 16a8658878
)
(cherry picked from commit 6e98bacbbd
)