[chore]: Bump github.com/yuin/goldmark from 1.6.0 to 1.7.0 (#2603)

This commit is contained in:
dependabot[bot] 2024-02-05 09:50:35 +00:00 committed by GitHub
commit a482cb59f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 62 additions and 61 deletions

View file

@ -66,10 +66,12 @@ func (o *withLinkifyAllowedProtocols) SetLinkifyOption(p *LinkifyConfig) {
// WithLinkifyAllowedProtocols is a functional option that specify allowed
// protocols in autolinks. Each protocol must end with ':' like
// 'http:' .
func WithLinkifyAllowedProtocols(value [][]byte) LinkifyOption {
return &withLinkifyAllowedProtocols{
value: value,
func WithLinkifyAllowedProtocols[T []byte | string](value []T) LinkifyOption {
opt := &withLinkifyAllowedProtocols{}
for _, v := range value {
opt.value = append(opt.value, []byte(v))
}
return opt
}
type withLinkifyURLRegexp struct {