Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asaaki/cmark.ex
💧 Elixir NIF for cmark (C), a parser library following the CommonMark spec, a compatible implementation of Markdown.
https://github.com/asaaki/cmark.ex
c cmark commonmark hex markdown nif parser parser-library
Last synced: about 2 months ago
JSON representation
💧 Elixir NIF for cmark (C), a parser library following the CommonMark spec, a compatible implementation of Markdown.
- Host: GitHub
- URL: https://github.com/asaaki/cmark.ex
- Owner: asaaki
- License: mit
- Archived: true
- Created: 2014-10-16T00:53:30.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2024-04-11T07:51:59.000Z (5 months ago)
- Last Synced: 2024-07-06T09:43:39.968Z (2 months ago)
- Topics: c, cmark, commonmark, hex, markdown, nif, parser, parser-library
- Language: C
- Homepage: https://hex.pm/packages/cmark
- Size: 1.38 MB
- Stars: 94
- Watchers: 3
- Forks: 15
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
- freaking_awesome_elixir - C - Elixir NIF for CommonMark (in C), a parser following the CommonMark spec. (Markdown)
- fucking-awesome-elixir - cmark - Elixir NIF for CommonMark (in C), a parser following the CommonMark spec. (Markdown)
- awesome-elixir - cmark - Elixir NIF for CommonMark (in C), a parser following the CommonMark spec. (Markdown)
README
# ![Cmark](./assets/cmark_ex_logo.png)
[![Hex.pm package version](https://img.shields.io/hexpm/v/cmark.svg?style=flat-square)](https://hex.pm/packages/cmark)
[![Hex.pm package docs](https://img.shields.io/badge/hex-docs-orange.svg?style=flat-square)](http://hexdocs.pm/cmark/)
[![Hex.pm package license](https://img.shields.io/hexpm/l/cmark.svg?style=flat-square)](https://github.com/asaaki/cmark.ex/blob/main/LICENSE)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/asaaki/cmark.ex/ci.yml?label=tests&style=flat-square)](https://github.com/asaaki/cmark.ex/actions?query=workflow%3ACI)
[![Coverage Status (main)](https://img.shields.io/coveralls/asaaki/cmark.ex/main.svg?style=flat-square)](https://coveralls.io/r/asaaki/cmark.ex)
[![Inline docs](http://inch-ci.org/github/asaaki/cmark.ex.svg?branch=main&style=flat-square)](http://inch-ci.org/github/asaaki/cmark.ex)**Cmark** is an Elixir NIF for [cmark (C)](https://github.com/jgm/cmark), a parser library following the [CommonMark](http://commonmark.org/) spec.
## CommonMark
> A strongly defined, highly compatible specification of Markdown
For more information visit .
## Install
### Prerequisites
You need a C compiler like `gcc` or `clang`.
### mix.exs
Add this to your dependencies:
```elixir
{:cmark, "~> 0.10"}
```## Usage
```elixir
Cmark.to_html("a markdown string")
#=> "a markdown string
\n"
```It supports conversions to HTML, XML, Manpage, CommonMark, and Latex.
Latest API docs can be found at:
## Licenses
- Cmark.ex: [LICENSE](https://github.com/asaaki/cmark.ex/blob/main/LICENSE) (MIT)
- cmark (C): [c_src/COPYING](https://github.com/asaaki/cmark.ex/blob/main/c_src/COPYING) (multiple)