Add a few missing DefinitelyTyped dependencies (#11381)

This commit is contained in:
Nicola Krumschmidt
2022-02-02 03:47:28 +01:00
committed by GitHub
parent c9d81e0292
commit 35ee3f4151
5 changed files with 39 additions and 3 deletions

View File

@@ -1,9 +1,9 @@
import { parse } from 'marked';
import { marked } from 'marked';
import sanitizeHTML from 'sanitize-html';
/**
* Render and sanitize a markdown string
*/
export function md(str: string): string {
return sanitizeHTML(parse(str));
return sanitizeHTML(marked(str));
}