(text: string)
| 256 | } |
| 257 | |
| 258 | function stripRawHtml(text: string): string { |
| 259 | return text |
| 260 | .split(/(```[\s\S]*?```)/g) |
| 261 | .map((segment, i) => |
| 262 | i % 2 === 0 ? replaceUntilStable(segment, /<\/?[a-z][^>]*>/gi, '') : segment |
| 263 | ) |
| 264 | .join('') |
| 265 | } |
| 266 | |
| 267 | function preserveSoftBreaks(text: string): string { |
| 268 | return text |
no test coverage detected