Skip to content

Files

Latest commit

4b7b885 · May 17, 2015

History

History
This branch is 207 commits behind mikaelbr/marked-terminal:master.

example

var marked = require('marked');
var fs = require('fs');
var TerminalRenderer = require('../');

// Example showing usage information from a CLI tool.

marked.setOptions({
  // Define custom renderer
  renderer: new TerminalRenderer()
});

// Show the parsed data
console.log(marked(fs.readFileSync(__dirname + "/../README.md").toString()));