Skip to content

Commit cb6fe28

Browse files
committed
Adjust markdown viewer class to fit stylesheets
fixes '"' around blockquotes.
1 parent 72d3a0c commit cb6fe28

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

notebooks/markdown.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ and render back to hiccup with customisable elements.
3535
```clojure
3636
(def renderers
3737
(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])
3939
:ruler (constantly [:hr.mt-1.mb-10.border-0.w-full.h-5.bg-fuchsia-900.rounded-full])))
4040

4141
(def hiccup

src/nextjournal/clerk/viewer.cljc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@
615615

616616
(def markdown-viewers
617617
[{:name :nextjournal.markdown/doc
618-
:transform-fn (into-markup [:div.viewer-markdown])}
618+
:transform-fn (into-markup [:div.markdown-viewer])}
619619

620620
;; blocks
621621
{:name :nextjournal.markdown/heading

test/nextjournal/clerk/viewer_test.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138

139139
(deftest present
140140
(testing "only transform-fn can select viewer"
141-
(is (match? {:nextjournal/value [:div.viewer-markdown
141+
(is (match? {:nextjournal/value [:div.markdown-viewer
142142
["h1" {:id "hello-markdown!"} [:<> "👋 Hello "] [:em [:<> "markdown"]] [:<> "!"]]]
143143
:nextjournal/viewer {:name `v/html-viewer-}}
144144
(v/present (v/with-viewer {:transform-fn (comp v/md v/->value)}

0 commit comments

Comments
 (0)