Revert oob-code highlight — aser can't render HTML tags

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) <noreply@anthropic.com>
This commit is contained in:
2026-04-01 14:47:57 +00:00
parent c1c073f26f
commit a5c6d947fd

View File

@@ -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