MCPcopy Create free account
hub / github.com/Effect-TS/effect / codeSpan

Function codeSpan

packages/tools/api-diff/src/MigrationDoc.ts:41–45  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

39}
40
41const codeSpan = (value: string): string => {
42 const delimiter = backtickDelimiter(value, 1)
43 const content = value.startsWith("`") || value.endsWith("`") ? ` ${value} ` : value
44 return `${delimiter}${content}${delimiter}`
45}
46
47const escapeMarkdownText = (value: string): string => value.replace(/\\/g, "\\\\").replace(/[~<>*_]/g, "\\$&")
48

Callers 3

renderDetailedEntryFunction · 0.70
renderCompactEntryFunction · 0.70
renderMigrationDocumentFunction · 0.70

Calls 1

backtickDelimiterFunction · 0.85

Tested by

no test coverage detected