Crystal wrapper for libcmark, the reference CommonMark C library.
Add the dependency to shard.yml
then run shards install
:
dependencies:
common_mark:
github: ysbaddaden/crystal-cmark
This will automatically download and compile libcmark.
require "common_mark"
html = CommonMark.new(text).to_html
Distributed under the BSD 2 Clause license.