Remove Prism language-* classes from code block components
highlight.py handles syntax coloring with Tailwind classes — Prism classes were conflicting and are not needed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 ---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user