From ea18a402d6d33e096faa6b81e4694338992a6788 Mon Sep 17 00:00:00 2001 From: giles Date: Tue, 3 Mar 2026 01:14:11 +0000 Subject: [PATCH] Remove Prism language-* classes from code block components MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit highlight.py handles syntax coloring with Tailwind classes — Prism classes were conflicting and are not needed. Co-Authored-By: Claude Opus 4.6 --- sx/sxc/docs.sx | 5 ++--- sx/sxc/examples.sx | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/sx/sxc/docs.sx b/sx/sxc/docs.sx index f5937e3..b4328e9 100644 --- a/sx/sxc/docs.sx +++ b/sx/sxc/docs.sx @@ -15,10 +15,9 @@ (h3 :class "text-xl font-semibold text-stone-700" title) children)) -(defcomp ~doc-code (&key language code) +(defcomp ~doc-code (&key code) (div :class "bg-stone-50 border border-stone-200 rounded-lg p-4 overflow-x-auto" - (pre :class "text-sm" - (code :class (str "language-" (or language "lisp")) code)))) + (pre :class "text-sm" (code code)))) (defcomp ~doc-note (&key &rest children) (div :class "border-l-4 border-violet-400 bg-violet-50 p-4 text-stone-700 text-sm" diff --git a/sx/sxc/examples.sx b/sx/sxc/examples.sx index 436d2d4..03a6cdc 100644 --- a/sx/sxc/examples.sx +++ b/sx/sxc/examples.sx @@ -13,8 +13,7 @@ (defcomp ~example-source (&key code) (div :class "bg-stone-50 border border-stone-200 rounded p-4 mt-3 overflow-x-auto" - (pre :class "text-sm" - (code :class "language-lisp" code)))) + (pre :class "text-sm" (code code)))) ;; --- Click to load demo ---