Skip to content

Commit

Permalink
markdown rendering on issue 3
Browse files Browse the repository at this point in the history
  • Loading branch information
humorless committed Jul 26, 2024
1 parent 589ced5 commit 29d4a6a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 4 additions & 2 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
com.lambdaisland/hiccup {:mvn/version "0.9.48"}
com.lambdaisland/ornament {:git/sha "0af129132bfbfeba940705031f83b60250e71dcf" ;; ornament-next with defprop/defrules/import-tokens
:git/url "https://github.com/lambdaisland/ornament.git"}
#_ {:local/root "/home/arne/github/lambdaisland/ornament"}
#_{:local/root "/home/arne/github/lambdaisland/ornament"}

io.pedestal/pedestal.log {:mvn/version "0.7.0"}
ch.qos.logback/logback-classic {:mvn/version "1.5.6"}
Expand All @@ -31,7 +31,9 @@
java-time-literals/java-time-literals {:mvn/version "2018-04-06"}

potemkin/potemkin {:mvn/version "0.4.7"} ; def-map-type
}

;; Markdown
markdown-to-hiccup {:mvn/version "0.6.2"}}

:aliases
{:dev
Expand Down
10 changes: 5 additions & 5 deletions src/co/gaiwan/compass/html/sessions.clj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
[clojure.string :as str]
[co.gaiwan.compass.css.tokens :as t :refer :all]
[java-time.api :as time]
[lambdaisland.ornament :as o]))
[lambdaisland.ornament :as o]
[markdown-to-hiccup.core :as m]))

(o/defprop --arc-degrees "240deg")
(o/defprop --arc-thickness "30px")
Expand Down Expand Up @@ -154,19 +155,18 @@
[:div
(subs (str/capitalize (str (time/day-of-week time))) 0 3) " "
(time/format "dd.MM" time)]]
[:div.description
[:div (m/component (m/md->hiccup description))]]
[:div.loc (:location/name location)]
[:div.capacity
[:div "Location capacity:"]
[:div capacity]]
[:div.signup-count
[:div "Current Signup count:"]
[:div "Current Signup:"]
[:div signup-count]]
[:div.participants
[:div "Participants:"]
[:div participants]]
[:div.description
[:div "Description:"]
[:div description]]
[:p.host "Organized by " organized]]]))

(o/defstyled session-list :main#sessions
Expand Down

0 comments on commit 29d4a6a

Please sign in to comment.