var fs = require('fs');
var prettify = require('./');
var Remarkable = require('remarkable');

/**
 * Load `format` as a remarkable plugin and
 * expose the `pretty` function.
 *
 * @param  {String} `str` String of markdown
 * @param  {Object} `options`
 * @return {String} Markdown-formatted table of contents
 */

function pretty(str, options) {
  return new Remarkable()
    .use(prettify)
    .render(str);
}

function read(name) {
  return fs.readFileSync('fixtures/' + name + '.md', 'utf8');
}
var md = new Remarkable();
md.use(prettify);
var result = md.render('\n\n\n# foo\n\n\nbar\n# baz');
console.log(result);
// console.log(pretty(read('example')));
// console.log(pretty(read('blockquotes')));
// console.log(pretty(read('emphasis')));
// console.log(pretty(read('table')));

@@ -92,327 +92,8 @@
 );%0A%0A
-/**%0A * Load %60format%60 as a remarkable plugin and%0A * expose the %60pretty%60 function.%0A *%0A * @param  %7BString%7D %60str%60 String of markdown%0A * @param  %7BObject%7D %60options%60%0A * @return %7BString%7D Markdown-formatted table of contents%0A */%0A%0Afunction pretty(str, options) %7B%0A  return new Remarkable()%0A    .use(prettify)%0A    .render(str);%0A%7D%0A%0A
 func

clean up