From c1c073f26f8a538681e990ebec3b6e328b322624 Mon Sep 17 00:00:00 2001 From: giles Date: Wed, 1 Apr 2026 14:45:16 +0000 Subject: [PATCH] ~docs/oob-code: highlight source text Now calls (highlight text) to produce syntax-colored SX output. OCaml-side aser has full env so code/span tags resolve correctly. 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 2dc3ea9b..2296c641 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" (code text))))) + (pre :class "text-sm whitespace-pre-wrap break-words" (highlight text))))) (defcomp ~docs/attr-table