Try to fix Broken Hyperlinks in Markdown to HTML conversion.

Thanks to xet7 !

Fixes #5932
This commit is contained in:
Lauri Ojansivu 2025-10-16 17:47:59 +03:00
parent dd88483ec7
commit bbbd3abf06

View file

@ -14,7 +14,7 @@ export function getSecureDOMPurifyConfig() {
],
// Block dangerous attributes that can cause XSS and CSS injection
FORBID_ATTR: [
'xlink:href', 'href', 'onload', 'onerror', 'onclick', 'onmouseover',
'xlink:href', 'onload', 'onerror', 'onclick', 'onmouseover',
'onfocus', 'onblur', 'onchange', 'onsubmit', 'onreset', 'onselect',
'onunload', 'onresize', 'onscroll', 'onkeydown', 'onkeyup', 'onkeypress',
'onmousedown', 'onmouseup', 'onmouseover', 'onmouseout', 'onmousemove',