MCPcopy Create free account
hub / github.com/gogs/gogs / isLink

Function isLink

internal/markup/markdown.go:37–39  ·  view source on GitHub ↗

isLink reports whether link fits valid format.

(link []byte)

Source from the content-addressed store, hash-verified

35
36// isLink reports whether link fits valid format.
37func isLink(link []byte) bool {
38 return validLinksPattern.Match(link)
39}
40
41// Link defines how formal links should be processed to produce corresponding HTML elements.
42func (r *MarkdownRenderer) Link(out *bytes.Buffer, link, title, content []byte) {

Callers 2

LinkMethod · 0.85
wrapImgWithLinkFunction · 0.85

Calls 1

MatchMethod · 0.80

Tested by

no test coverage detected