Package Exports
- marked-terminal
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (marked-terminal) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
marked-terminal
Early release of a custom Renderer for marked allowing for printing Markdown to the Terminal.
Could for instance be used to print usage information.
Install
npm install marked marked-terminal
Example
var marked = require('marked');
var TerminalRenderer = require('../');
marked.setOptions({
// Define custom renderer
renderer: new TerminalRenderer()
});
// Show the parsed data
console.log(marked('# Hello \n This is **markdown** printed in the `terminal`'));
This will produce the following:
See more examples