Skip to content

Commit

Permalink
avoiding css code chunks, as they turned out to be buggy
Browse files Browse the repository at this point in the history
  • Loading branch information
daslu committed Oct 13, 2023
1 parent ab48cf4 commit a452f80
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/scicloj/clay/v2/page.clj
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,6 @@ clay_1();
"<table class='table table-hover'>"))))


(defn md-style [css]
(format "
```{css echo=FALSE}
%s
```
" css))

(defn light-qmd [{:keys [data title options counter]}
items]
(let [special-libs (distinct
Expand All @@ -260,8 +253,8 @@ clay_1();

;; " "
(hiccup/html
(md-style (styles/main :table))
(md-style (styles/main :md-main)))
[:style (styles/main :table)]
[:style (styles/main :md-main)])
(->> (concat (->> special-libs
(mapcat (comp :from-local-copy :css special-lib-resources)))
(->> special-libs
Expand Down

0 comments on commit a452f80

Please sign in to comment.