Preserve formatting of non-html extension widget content

This commit is contained in:
Svilen Markov committed 2024-12-22 13:44:41 +00:00
1 parent 495eaa0a37
commit f89fc2ee1d
2 files changed
+5 -1

No files matched your search

+4
View File
@@ -273,6 +273,10 @@
background-color: var(--color-separator);
}
pre {
font: inherit;
}
::selection {
background-color: hsl(var(--bghs), calc(var(--scheme) (var(--scheme) var(--bgl) + 20%)));
color: var(--color-text-highlight);
+1 -1
View File
@@ -103,7 +103,7 @@ func convertExtensionContent(options extensionRequestOptions, content []byte, co
fallthrough
default:
return template.HTML(html.EscapeString(string(content)))
return template.HTML("<pre>" + html.EscapeString(string(content)) + "</pre>")
}
}