mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Add a few missing DefinitelyTyped dependencies (#11381)
This commit is contained in:
committed by
GitHub
parent
c9d81e0292
commit
35ee3f4151
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user