(contentMarkdown: string)
| 94 | fns.reduce((v, f) => f(v), x); |
| 95 | |
| 96 | export const markdownToHtml = (contentMarkdown: string) => { |
| 97 | const content = pipe( |
| 98 | getHTMLFromMarkdown, |
| 99 | getSanitizedHTML, |
| 100 | extractMentions, |
| 101 | getOptimizedImages, |
| 102 | )(contentMarkdown); |
| 103 | |
| 104 | return content; |
| 105 | }; |
no test coverage detected