marked-async
Modified marked module for using with asynchronous renderer methods.
Install
npm install marked-async --save
marked()
function return Promise
object.
const html = await console// Outputs: <p>I am using <strong>markdown</strong>.</p>
async renderer
Default marked renderer is
const renderer = renderer { return `<img src="" />`} const html = async console
You can also set renderer method with async mode.
rendererimage = async { // some async process... const image = await const size = await return `<img src="" width="" height="" />`} const html = async console
Author
Yusuke Shibata
Original marked is by Christopher Jeffrey.
License
MIT