(text: string)
| 22 | |
| 23 | // Escape HTML special characters for safe rendering |
| 24 | function escapeHtml(text: string): string { |
| 25 | return text |
| 26 | .replace(/&/g, "&") |
| 27 | .replace(/</g, "<") |
| 28 | .replace(/>/g, ">") |
| 29 | } |
| 30 | |
| 31 | // Code block text sizes matching paragraph text sizes |
| 32 | const codeBlockTextSize = { |