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

Function escapeMarkdownText

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

Source from the content-addressed store, hash-verified

37}
38
39const escapeMarkdownText = (value: string): string => value.replace(/\\/g, "\\\\").replace(/[~<>*_]/g, "\\$&")
40
41const escapeAnnotationText = (value: string): string => {
42 const output: Array<string> = []

Callers 1

escapeAnnotationTextFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected