(value: string)
| 31 | } |
| 32 | |
| 33 | const codeSpan = (value: string): string => { |
| 34 | const delimiter = "`".repeat(Math.max(1, ...(value.match(/`+/g)?.map((run) => run.length + 1) ?? []))) |
| 35 | const content = value.startsWith("`") || value.endsWith("`") ? ` ${value} ` : value |
| 36 | return `${delimiter}${content}${delimiter}` |
| 37 | } |
| 38 | |
| 39 | const escapeMarkdownText = (value: string): string => value.replace(/\\/g, "\\\\").replace(/[~<>*_]/g, "\\$&") |
| 40 |
no test coverage detected