https://github.com/mvasilkov/cmark-emscripten
This is an Emscripten port of the C reference implementation of CommonMark, cmark.
https://github.com/mvasilkov/cmark-emscripten
cmark commonmark emscripten markdown nodejs webassembly
Last synced: 4 months ago
JSON representation
This is an Emscripten port of the C reference implementation of CommonMark, cmark.
- Host: GitHub
- URL: https://github.com/mvasilkov/cmark-emscripten
- Owner: mvasilkov
- License: mit
- Created: 2018-04-27T18:57:50.000Z (about 7 years ago)
- Default Branch: webassembly
- Last Pushed: 2022-04-29T20:00:09.000Z (about 3 years ago)
- Last Synced: 2025-03-06T12:23:49.567Z (4 months ago)
- Topics: cmark, commonmark, emscripten, markdown, nodejs, webassembly
- Language: JavaScript
- Homepage: https://github.com/mvasilkov/cmark-emscripten
- Size: 267 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
cmark-emscripten
===This is an [Emscripten][1] port of the C reference implementation of [CommonMark][2], [cmark][3].
[][4]
**cmark-emscripten** can be used in Node.js and the browser.
Installation
---```sh
yarn add cmark-emscripten
```Usage
---```js
const cmark = require('cmark-emscripten')cmark.toHTML(`
What do you call a basement full of liberals?
---*A whine cellar.*
`).then(console.log)
```**Outputs:**
```html
What do you call a basement full of liberals?
A whine cellar.
```[1]: http://emscripten.org/
[2]: http://commonmark.org/
[3]: https://github.com/commonmark/cmark
[4]: https://github.com/mvasilkov/cmark-emscripten