Preserve formatting of non-html extension widget content

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

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);

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>")
}
}