File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ and render back to hiccup with customisable elements.
35
35
``` clojure
36
36
(def renderers
37
37
(assoc md.transform/default-hiccup-renderers
38
- :doc (partial md.transform/into-markup [:div.viewer- markdown ])
38
+ :doc (partial md.transform/into-markup [:div.markdown-viewer ])
39
39
:ruler (constantly [:hr.mt-1.mb-10.border-0.w-full.h-5.bg-fuchsia-900.rounded-full ])))
40
40
41
41
(def hiccup
Original file line number Diff line number Diff line change 615
615
616
616
(def markdown-viewers
617
617
[{:name :nextjournal.markdown/doc
618
- :transform-fn (into-markup [:div.viewer- markdown ])}
618
+ :transform-fn (into-markup [:div.markdown-viewer ])}
619
619
620
620
; ; blocks
621
621
{:name :nextjournal.markdown/heading
Original file line number Diff line number Diff line change 138
138
139
139
(deftest present
140
140
(testing " only transform-fn can select viewer"
141
- (is (match? {:nextjournal/value [:div.viewer- markdown
141
+ (is (match? {:nextjournal/value [:div.markdown-viewer
142
142
[" h1" {:id " hello-markdown!" } [:<> " 👋 Hello " ] [:em [:<> " markdown" ]] [:<> " !" ]]]
143
143
:nextjournal/viewer {:name `v/html-viewer-}}
144
144
(v/present (v/with-viewer {:transform-fn (comp v/md v/->value)}
You can’t perform that action at this time.
0 commit comments