fix(server): indentation in HTML not preserved (closes #3151)

This commit is contained in:
Elian Doran
2026-04-11 11:07:59 +03:00
parent afd2806a67
commit a1a2119e37

View File

@@ -49,7 +49,10 @@ function sanitize(dirtyHtml: string) {
allowedStyles: {
"*": {
color: colorRegex,
"background-color": colorRegex
"background-color": colorRegex,
"margin-left": sizeRegex,
"padding-left": sizeRegex,
"text-align": [/^\s*(left|center|right|justify)\s*$/]
},
figure: {
float: [/^\s*(left|right|none)\s*$/],