Skip to content

Commit

Permalink
Commonmark example source
Browse files Browse the repository at this point in the history
  • Loading branch information
zampino committed Nov 29, 2023
1 parent c223a8c commit 5ac3799
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/nextjournal/markdown_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,7 @@ Par.
(is (= [:div [:p [:img {:src "/url" :alt "foo" :title "title"}]]]
(md/->hiccup "![foo](/url \"title\")")))

;; https://spec.commonmark.org/0.30/#example-578
(is (= [:div [:p "My " [:img {:alt "foo bar" :src "/path/to/train.jpg" :title "title"}]]]
(md/->hiccup "My ![foo bar](/path/to/train.jpg \"title\" )"))))

Expand Down

0 comments on commit 5ac3799

Please sign in to comment.