"Don't look up, look down !"
-- President Orlean
Hiccdown is a pure CLJC library designed to translate documents back and forth between the Markdown format, an AST data, and the Hiccup data structure.
The implementation is incomplete, do not use.
See the tests in test/spec_test.cljs
to see what is working and what is not.
- Compatible with the latest (v0.30) CommonMark specification
- Pure CLJC implementation, no JS or Java dependencies
- Conversions between
markdown <-> AST <-> hiccup
(require '[hiccdown.core :as hd])
;; Transform a markdown document into hiccup data.
(-> markdown-str hd/markdown->ast hd/ast->hiccup)
;; Same as above, in the other direction. (Not implemented yet)
(-> hiccup-data hd/hiccup->ast hd/ast->markdown)
Run npm i
once, then:
./bin/kaocha --watch
In alphabetical order:
- https://github.com/askonomm/clarktown
- https://github.com/bitterblue/commonmark-hiccup
- https://github.com/chameco/Hitman
- https://github.com/danneu/klobbdown
- https://github.com/genmeblog/rmarkdown-clojure
- https://github.com/kiranshila/cybermonday
- https://github.com/malcolmsparks/clj-markdown
- https://github.com/markwoodhall/marge
- https://github.com/mpcarolin/markdown-to-hiccup
- https://github.com/yogthos/markdown-clj
(Open an issue if you wish to have your library added to the list)
Copyright © 2022 Vincent Cantin
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.