(value: string, minimum: number)
| 31 | } |
| 32 | |
| 33 | const backtickDelimiter = (value: string, minimum: number): string => { |
| 34 | let length = minimum |
| 35 | for (const match of value.matchAll(/`+/g)) { |
| 36 | length = Math.max(length, match[0].length + 1) |
| 37 | } |
| 38 | return "`".repeat(length) |
| 39 | } |
| 40 | |
| 41 | const codeSpan = (value: string): string => { |
| 42 | const delimiter = backtickDelimiter(value, 1) |
no outgoing calls
no test coverage detected