tree: 003eb3775f2f848897d97d3d5543f0376b28aeea [path history] [tgz]
  1. ansi/
  2. bin/
  3. lib/
  4. .npmignore
  5. bench.js
  6. index.html
  7. LICENSE
  8. package.json
  9. README.md
  10. test.js
js/README.md

CommonMark

CommonMark is a rationalized version of Markdown syntax, with a spec and BSD3-licensed reference implementations in C and JavaScript.

For more information, see http://commonmark.org.

To play with this library without installing it, see the live dingus at http://spec.commonmark.org/dingus.html.

This package includes the commonmark library and a command-line executable, commonmark.

Basic usage example:

var reader = new commonmark.DocParser();
var writer = new commonmark.HtmlRenderer();
var parsed = reader.parse("Hello *world*");
var result = writer.render(parsed);