File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 metosin/malli {:mvn/version " 0.19.1" }
1212 clj-fuzzy/clj-fuzzy {:mvn/version " 0.4.1" }
1313 clj-thamil/clj-thamil {:mvn/version " 0.2.0" }
14- org.scicloj/clay {:mvn/version " 2-beta53 "
14+ org.scicloj/clay {:mvn/version " 2-beta54 "
1515 #_#_:git/url " https://github.com/scicloj/clay.git"
1616 #_#_:git/sha " b5ebd1a98d7deba6c165a72077ffa08554f4c93a" }
1717 org.eclipse.elk/org.eclipse.elk.core {:mvn/version " 0.10.0" }
Original file line number Diff line number Diff line change 9494 :image " https://avatars.githubusercontent.com/u/1161048?v=4"
9595 :email " "
9696 :affiliation [:scicloj ]
97- :links [{:icon " github" :href " https://github.com/alza-bitz" }]}]
97+ :links [{:icon " github" :href " https://github.com/alza-bitz" }]}
98+ {:id :emilbengtsson
99+ :name " Emil Bengtsson"
100+ :url " https://emil0r.com"
101+ :image " https://avatars.githubusercontent.com/u/49733?v=4"
102+ :links [{:icon " github" :href " https://github.com/emil0r" }]}]
98103
99104 :affiliation
100105 [{:id :clojure.core
Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ figcaption {
3030 text-align : center ;
3131}
3232
33- body .quarto-dark .js-plotly-plot {
33+ body .quarto-dark .js-plotly-plot ,
34+ body .quarto-dark .mermaid {
3435 filter : invert (100% ) hue-rotate (180deg );
3536}
3637
@@ -85,4 +86,4 @@ table {
8586/* Add space between main headings and descriptions */
8687#title-block-header .quarto-title-block.default .quarto-title .title {
8788 margin-bottom : 0.5em ;
88- }
89+ }
Original file line number Diff line number Diff line change 1+ ^{:kindly/hide-code true
2+ :clay {:title " Mermaid.js"
3+ :format [:quarto :html ]
4+ :quarto {:author :emilbengtsson
5+ :description " Explain complex concepts with mermaid.js"
6+ :type :post
7+ :date " 2025-09-05"
8+ :image " mermaid.png"
9+ :category :clay
10+ :tags [:clay :workflow ]}}}
11+ (ns scicloj.clay.mermaid
12+ (:require [scicloj.kindly.v4.kind :as kind]))
13+
14+
15+ ; ; ## A picture is worth a thousand words
16+
17+ (kind/mermaid " flowchart LR
18+ Concept --> easy{Easy to understand?}
19+ easy -->|Yes| Understanding
20+ easy -->|No| Diagram
21+ easy -->|No| wall(Wall of text)
22+ Diagram --> Understanding
23+ wall -->|Didn't get it| Concept
24+ wall -->|Finally| Understanding" )
25+
26+ ; ;
27+ ; ; With [mermaid.js](https://mermaid.js.org/) you can now use words to generate
28+ ; ; a picture. One of the trickier aspects in explaining complex ideas/concepts,
29+ ; ; is the infliction point where words start to pile up towards dizzying heights
30+ ; ; and you lose sight of what what you wanted to communicate.
You can’t perform that action at this time.
0 commit comments