https://github.com/green-coder/hiccdown
[WIP] Pure CLJC library to transform back and forth between markdown and hiccup
https://github.com/green-coder/hiccdown
cljc clojure clojurescript hiccup markdown markdown-parser wip-do-not-use
Last synced: about 1 month ago
JSON representation
[WIP] Pure CLJC library to transform back and forth between markdown and hiccup
- Host: GitHub
- URL: https://github.com/green-coder/hiccdown
- Owner: green-coder
- License: epl-1.0
- Created: 2018-11-21T02:06:12.000Z (over 6 years ago)
- Default Branch: made-in-taiwan
- Last Pushed: 2022-05-26T08:51:06.000Z (almost 3 years ago)
- Last Synced: 2025-02-10T11:11:20.080Z (3 months ago)
- Topics: cljc, clojure, clojurescript, hiccup, markdown, markdown-parser, wip-do-not-use
- Language: Clojure
- Homepage:
- Size: 45.9 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# hiccdown
[](https://circleci.com/gh/green-coder/hiccdown)[](https://clojars.org/hiccdown)
[](https://cljdoc.org/d/hiccdown/hiccdown/CURRENT)
[](https://clojurians.slack.com/archives/C036LVCSL91)
[](https://clojars.org/hiccdown)> "Don't look up, look down !"
>
> -- President OrleanHiccdown is a pure CLJC library designed to translate documents
back and forth between the Markdown format, an AST data, and the Hiccup data structure.## Project status
**The implementation is incomplete, do not use.**
See the tests in `test/spec_test.cljs` to see what is working and what is not.
## Features (wip)
- Compatible with the [latest (v0.30) CommonMark specification](https://spec.commonmark.org/0.30/)
- Pure **CLJC implementation**, no JS or Java dependencies
- Conversions between `markdown <-> AST <-> hiccup`## Installation
[](http://clojars.org/hiccdown)
## Usage (wip)
```clojure
(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)
```## Running the tests
Run `npm i` once, then:
```shell
./bin/kaocha --watch
```## Alternative Clojure(script) libs
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)
## License
Copyright © 2022 Vincent Cantin
Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.