Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ysbaddaden/crystal-cmark
Crystal wrapper for libcmark, the reference CommonMark C library
https://github.com/ysbaddaden/crystal-cmark
commonmark crystal markdown
Last synced: 16 days ago
JSON representation
Crystal wrapper for libcmark, the reference CommonMark C library
- Host: GitHub
- URL: https://github.com/ysbaddaden/crystal-cmark
- Owner: ysbaddaden
- Created: 2015-11-23T10:13:58.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-11-25T17:18:13.000Z (almost 3 years ago)
- Last Synced: 2024-06-19T09:42:15.951Z (5 months ago)
- Topics: commonmark, crystal, markdown
- Language: Crystal
- Size: 11.7 KB
- Stars: 18
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CommonMark
Crystal wrapper for libcmark, the reference CommonMark C library.
## Install
Add the dependency to `shard.yml` then run `shards install`:
```yaml
dependencies:
common_mark:
github: ysbaddaden/crystal-cmark
```This will automatically download and compile libcmark.
## Usage
```crystal
require "common_mark"
html = CommonMark.new(text).to_html
```## License
Distributed under the [BSD 2 Clause](http://opensource.org/licenses/BSD-2-Clause) license.