node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »


marked-promise version License

Promise version of marked: Match files using the patterns the shell uses, like stars and stuff.

Build Status Downloads Code Climate Coverage Status Dependency Status Dependencies


npm install --only=production --save marked-promise


marked(markdown [, options])

pattern: String options: Object Return: Object (Promise)

When it finishes, it will be fulfilled with an String of the HTML content as its first argument.

When it fails to read the files, it will be rejected with an error as its first argument.

marked('I am using __markdown__.')
  .then(function(contents) {
    contents; //=> <p>I am using <strong>markdown</strong>.</p>\n 


The option object will be directly passed to marked.

©️  ·  License: ISC  ·  Github: @ahmadnassri  ·  Twitter: @ahmadnassri