mirror of
https://github.com/zadam/trilium.git
synced 2026-05-07 06:57:16 +02:00
fix(server): indentation in HTML not preserved (closes #3151)
This commit is contained in:
@@ -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*$/],
|
||||
|
||||
Reference in New Issue
Block a user