From a5c6d947fd2bf396ed3bd1646f17f536f6bab8f1 Mon Sep 17 00:00:00 2001 From: giles Date: Wed, 1 Apr 2026 14:47:57 +0000 Subject: [PATCH] =?UTF-8?q?Revert=20oob-code=20highlight=20=E2=80=94=20ase?= =?UTF-8?q?r=20can't=20render=20HTML=20tags?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit highlight returns (code (span ...)) elements which render-to-html handles but aser doesn't. OOB responses go through aser. Plain text for now — highlighting needs to happen client-side or aser needs HTML tag support. Co-Authored-By: Claude Opus 4.6 (1M context) --- sx/sx/docs.sx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sx/sx/docs.sx b/sx/sx/docs.sx index 2296c641..2dc3ea9b 100644 --- a/sx/sx/docs.sx +++ b/sx/sx/docs.sx @@ -17,7 +17,7 @@ :sx-swap-oob "innerHTML" (div :class "not-prose bg-stone-100 rounded p-4 mt-3" - (pre :class "text-sm whitespace-pre-wrap break-words" (highlight text))))) + (pre :class "text-sm whitespace-pre-wrap break-words" (code text))))) (defcomp ~docs/attr-table