()
| 407 | } |
| 408 | |
| 409 | export function configureMarked(): void { |
| 410 | if (markedConfigured) return |
| 411 | markedConfigured = true |
| 412 | |
| 413 | // Disable strikethrough parsing - the model often uses ~ for "approximate" |
| 414 | // (e.g., ~100) and rarely intends actual strikethrough formatting |
| 415 | marked.use({ |
| 416 | tokenizer: { |
| 417 | del() { |
| 418 | return undefined |
| 419 | }, |
| 420 | }, |
| 421 | }) |
| 422 | } |
| 423 | |
| 424 | export function applyMarkdown( |
| 425 | content: string, |
no outgoing calls
no test coverage detected