MCPcopy Create free account
hub / github.com/Hashnode/starter-kit / markdownToHtml

Function markdownToHtml

packages/utils/renderer/markdownToHtml.ts:96–105  ·  view source on GitHub ↗
(contentMarkdown: string)

Source from the content-addressed store, hash-verified

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

Callers 4

PostFunction · 0.90
_MarkdownToHtmlFunction · 0.90
PostCommentsFunction · 0.90
_MarkdownToHtmlFunction · 0.90

Calls 1

pipeFunction · 0.85

Tested by

no test coverage detected