(content: string)
| 48 | |
| 49 | /** Parses markdown into HTML safe for `dangerouslySetInnerHTML`. */ |
| 50 | export function parseMarkdownToSafeHtml(content: string): string { |
| 51 | return marked.parse(content, { |
| 52 | gfm: true, |
| 53 | breaks: true, |
| 54 | renderer, |
| 55 | }) as string; |
| 56 | } |
no outgoing calls
no test coverage detected