mirror of
https://github.com/directus/directus.git
synced 2026-01-23 00:48:24 -05:00
Disable disable depreacted marked options (#18685)
This commit is contained in:
@@ -5,5 +5,5 @@ import sanitizeHTML from 'sanitize-html';
|
||||
* Render and sanitize a markdown string
|
||||
*/
|
||||
export function md(str: string): string {
|
||||
return sanitizeHTML(marked(str));
|
||||
return sanitizeHTML(marked(str, { headerIds: false, mangle: false }));
|
||||
}
|
||||
|
||||
@@ -25,6 +25,8 @@ export function md(str: string, options: Options = { target: '_self' }): string
|
||||
return dompurify.sanitize(
|
||||
marked(str, {
|
||||
renderer,
|
||||
headerIds: false,
|
||||
mangle: false,
|
||||
}),
|
||||
{ ADD_ATTR: ['target'] }
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user