summaryrefslogtreecommitdiff
path: root/js/lib/index.js
blob: a8bf009edf7fa2b742ee65bb40c932bade79a25e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// stmd.js - CommomMark in JavaScript
// Copyright (C) 2014 John MacFarlane
// License: BSD3.

// Basic usage:
//
// var stmd = require('stmd');
// var parser = new stmd.DocParser();
// var renderer = new stmd.HtmlRenderer();
// console.log(renderer.render(parser.parse('Hello *world*')));

module.exports.DocParser = require('./blocks');
module.exports.HtmlRenderer = require('./html-renderer');