feat: implement math rendering in HTML component and enhance drag handle visibility logic
This commit is contained in:
@@ -45,7 +45,7 @@ export function sanitizeHtml(html: string): string {
|
||||
'img'
|
||||
],
|
||||
// Allow safe attributes
|
||||
ALLOWED_ATTR: ['href', 'src', 'alt', 'title', 'class', 'style'],
|
||||
ALLOWED_ATTR: ['href', 'src', 'alt', 'title', 'class', 'style', 'data-type', 'data-latex'],
|
||||
// Forbid dangerous attributes
|
||||
FORBID_ATTR: [
|
||||
'onerror',
|
||||
|
||||
Reference in New Issue
Block a user