Skip to content
Crystal wrapper for libcmark, the reference CommonMark C library
Crystal Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ext Upgrade to cmark v0.29.0 Sep 10, 2019
src
test
.gitignore
Makefile
README.md
shard.lock
shard.yml

README.md

CommonMark

Crystal wrapper for libcmark, the reference CommonMark C library.

Install

Add the dependency to shard.yml then run shards install:

dependencies:
  common_mark:
    github: ysbaddaden/crystal-cmark

This will automatically download and compile libcmark.

Usage

require "common_mark"
html = CommonMark.new(text).to_html

License

Distributed under the BSD 2 Clause license.

You can’t perform that action at this time.