Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 26 days 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 (over 6 years ago)
- Default Branch: webassembly
- Last Pushed: 2022-04-29T20:00:09.000Z (over 2 years ago)
- Last Synced: 2024-11-19T04:01:40.299Z (about 1 month 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].
[![](https://github.com/mvasilkov/cmark-emscripten/raw/webassembly/static/cmark-emscripten.png)][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