MCPcopy Create free account
hub / github.com/cli/cli / markdown

Method markdown

internal/attachments/userasset.go:88–90  ·  view source on GitHub ↗
(assetURL string)

Source from the content-addressed store, hash-verified

86}
87
88func (a *imageAsset) markdown(assetURL string) string {
89 return fmt.Sprintf("![%s](%s)", escapeAlt(a.alt), assetURL)
90}
91
92// videoAsset renders as a player, which markdown has no syntax for: GitHub
93// promotes a bare URL that is the whole content of a paragraph.

Callers

nothing calls this directly

Calls 1

escapeAltFunction · 0.85

Tested by

no test coverage detected