Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Clone

Read only, no credentials:

https://rodent.software/git/vole.git

Write over SSH with a registered key:

git clone ssh://git@0.0.0.0:2222/vole.git

A free and open-source forge that lives in your Git repo.

Fix HTMX inline styles and Prism worker message parsing

ac00929fcb2269e874a0b7c0e6868885f57723ce · Keenan Nemetz · 12d ago · parent a76b2f38

Fix HTMX inline styles and Prism worker message parsing

HTMX injects a <style> element for its indicator classes, which style-src 'self' blocks. Turn that off through its config meta tag and keep the indicator rules in the stylesheet instead.

Prism installs its own worker message handler that expects a JSON string, so it threw JSON.parse on every structured job before prism-worker.js could highlight it. Disable that handler; the worker already owns the message path.

server/web/templates/chrome.html +1

@@ -9,6 +9,7 @@
9 9 <meta name="viewport" content="width=device-width,initial-scale=1">
10 10 <meta name="csrf" content="{{.CSRF}}">
11 11 <meta name="color-scheme" content="dark light">
12 <meta name="htmx-config" content='{"includeIndicatorStyles":false}'>
12 13 <title>{{.Title}} · Vole</title>
13 14 <link rel="icon" type="image/png" sizes="32x32" href="/static/favicon-32.png">
14 15 <link rel="icon" type="image/png" sizes="16x16" href="/static/favicon-16.png">