mirror of
https://gitea.com/gitea/tea.git
synced 2024-11-22 02:21:36 +01:00
d2295828d0
Path-only URLs need an absolute reference to be resolved against for printing in markdown Previously we resolved against the URL to the resource we were operating on (eg comment or issue URL). The markdown renderer in the web UI resolves all such URLs relative to the repo base URL. This PR adopts this behaviour in tea, by trimming the URL to a repo base URL via regex. This makes a custom patch to our markdown renderer `glamour` obsolete, which turned out to be an incorrect patch, meaning we can make use of upstream glamour again. Co-authored-by: Norwin <git@nroo.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/401 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-by: 6543 <6543@obermui.de> Co-authored-by: Norwin <noerw@noreply.gitea.io> Co-committed-by: Norwin <noerw@noreply.gitea.io>
40 lines
1.6 KiB
Modula-2
40 lines
1.6 KiB
Modula-2
module code.gitea.io/tea
|
|
|
|
go 1.13
|
|
|
|
require (
|
|
code.gitea.io/gitea-vet v0.2.1
|
|
code.gitea.io/sdk/gitea v0.15.0
|
|
gitea.com/noerw/unidiff-comments v0.0.0-20201219085024-64aec5658f2b
|
|
github.com/AlecAivazis/survey/v2 v2.3.1
|
|
github.com/ProtonMail/go-crypto v0.0.0-20210707164159-52430bf6b52c // indirect
|
|
github.com/adrg/xdg v0.3.3
|
|
github.com/alecthomas/chroma v0.9.2 // indirect
|
|
github.com/araddon/dateparse v0.0.0-20210429162001-6b43995a97de
|
|
github.com/charmbracelet/glamour v0.3.0
|
|
github.com/cpuguy83/go-md2man/v2 v2.0.1 // indirect
|
|
github.com/enescakir/emoji v1.0.0
|
|
github.com/go-git/go-git/v5 v5.4.2
|
|
github.com/hashicorp/go-version v1.3.0 // indirect
|
|
github.com/kevinburke/ssh_config v1.1.0 // indirect
|
|
github.com/mattn/go-colorable v0.1.8 // indirect
|
|
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
|
|
github.com/microcosm-cc/bluemonday v1.0.15 // indirect
|
|
github.com/muesli/reflow v0.3.0 // indirect
|
|
github.com/muesli/termenv v0.9.0
|
|
github.com/olekukonko/tablewriter v0.0.5
|
|
github.com/sergi/go-diff v1.2.0 // indirect
|
|
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
|
|
github.com/stretchr/testify v1.7.0
|
|
github.com/urfave/cli/v2 v2.3.0
|
|
github.com/xanzy/ssh-agent v0.3.1 // indirect
|
|
github.com/yuin/goldmark v1.4.0 // indirect
|
|
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5
|
|
golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d // indirect
|
|
golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf // indirect
|
|
golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b // indirect
|
|
golang.org/x/text v0.3.7 // indirect
|
|
golang.org/x/tools v0.1.5 // indirect
|
|
gopkg.in/yaml.v2 v2.4.0
|
|
)
|