feat: implement math rendering in HTML component and enhance drag handle visibility logic

This commit is contained in:
Rotimi Best
2026-03-12 06:44:56 +01:00
parent c87cc4b868
commit f3690c6746
6 changed files with 66 additions and 5 deletions
+1 -1
View File
@@ -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',