Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nadako/commonmark-hx
CommonMark for Haxe
https://github.com/nadako/commonmark-hx
Last synced: 11 days ago
JSON representation
CommonMark for Haxe
- Host: GitHub
- URL: https://github.com/nadako/commonmark-hx
- Owner: nadako
- Created: 2015-09-05T00:44:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-19T23:33:28.000Z (over 8 years ago)
- Last Synced: 2024-10-25T09:50:02.483Z (about 2 months ago)
- Language: Haxe
- Homepage:
- Size: 161 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/nadako/commonmark-hx.svg?branch=master)](https://travis-ci.org/nadako/commonmark-hx)
# CommonMark for Haxe
This is a port the [JavaScript reference implementation](https://github.com/jgm/commonmark.js) of the [CommonMark](http://commonmark.org/) spec.
* Current spec version version: 0.26
* Corresponding JS implementation commit: https://github.com/jgm/commonmark.js/commit/2a569ad9b4bb839e88bae03b4c1e5de176bcf357It's currently only passes CommonMark spec tests on *JavaScript* and *C#* targets.
## Example usage
This is similar to the original JS version
```haxe
var parser = new commonmark.Parser();
var ast = parser.parse("# Hello");
var writer = new commonmark.HtmlRenderer();
var html = writer.render(ast);
```