Skip to content

Commit

Permalink
Do what we claim
Browse files Browse the repository at this point in the history
  • Loading branch information
mk committed Nov 10, 2023
1 parent 2c3eb72 commit 723b4a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions book.clj
Original file line number Diff line number Diff line change
Expand Up @@ -378,14 +378,14 @@ int main() {
;; nice captions:

(defn caption [text]
(clerk/html [:span.text-slate-500.text-xs.text-center.font-sans text]))
(clerk/html [:figcaption.text-center.mt-1 text]))

(clerk/row
(clerk/col image-1 (caption "Figure 1: Decorative A"))
(clerk/col image-2 (caption "Figure 2: Decorative B"))
(clerk/col image-3 (caption "Figure 3: Decorative C")))

;; Note: the caption example is _exactly_ how clerk actually implements `clerk/caption`.
;; Note: the caption example is _exactly_ how `clerk/caption` is implemented in Clerk.

;; **Alternative notations**
;;
Expand Down

0 comments on commit 723b4a5

Please sign in to comment.