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

Function comparableDestination

internal/attachments/references.go:405–407  ·  view source on GitHub ↗

comparableDestination reduces a destination goldmark reported to the single form used to decide whether a run of source is the node it came from. Percent encoding is left as written, since goldmark reports it unchanged and both sides of every comparison therefore carry it.

(dest string)

Source from the content-addressed store, hash-verified

403// encoding is left as written, since goldmark reports it unchanged and both
404// sides of every comparison therefore carry it.
405func comparableDestination(dest string) string {
406 return unescapePunctuation(dest)
407}
408
409// comparableSource reduces a destination read straight from the source to that
410// same form. It still carries the syntax goldmark had already removed: the

Callers 4

scanMarkdownRefsFunction · 0.85
linkReferenceDefinitionsFunction · 0.85
comparableSourceFunction · 0.85
linkReferenceDestinationFunction · 0.85

Calls 1

unescapePunctuationFunction · 0.85

Tested by

no test coverage detected