cmark
libcmark wrapper for Nim
Wraps a native library — check OS Compatibility below for platform-specific linking notes.
Summary
| Latest Version | Unknown |
|---|---|
| License | Apache-2.0 |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:24 |
Tags
Installation
nimble install cmark
choosenim install cmark
git clone https://github.com/zengxs/nim-cmark
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| cmark | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/zengxs/nim-cmark |
|---|---|
| Homepage | https://github.com/zengxs/nim-cmark |
| Registry Source | nimble_official |
README
nim-cmark
libcmark wrapper for Nim.
Installation
nim-cmark requires that libcmark is installed and the shared library is available.
How to install libcmark?
macOS
brew install cmark
Ubuntu
sudo apt install libcmark-dev
Windows
Refer to https://github.com/commonmark/cmark#installing-windows.
Getting Started
import cmark
let markdown = """
# hello
```nim
echo "hello world"
```
"""
echo markdown_to_html(markdown, CMARK_OPT_DEFAULT)
Got output:
<h1>hello</h1>
<pre><code class="language-nim">echo "hello world"
</code></pre>
License
All code is released under the Apache-2.0 license.