2.1.4 • Published 2 years ago

marked-promise v2.1.4

Weekly downloads
4
License
MIT
Repository
github
Last release
2 years ago

Marked Promise

Promise version of marked

license release semantic

Install

npm install marked-promise

API

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
  });

options

The option object will be directly passed to marked.


Author: Ahmad Nassri  Twitter: @AhmadNassri

2.1.4

2 years ago

2.1.3

2 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.0

8 years ago

1.0.0

10 years ago