0.0.2 • Published 6 years ago

md-recast v0.0.2

Weekly downloads
222
License
MIT
Repository
-
Last release
6 years ago

md-recast

A markdown parser that outputs to Recast.AI Bot Connector's format

Usage:

  const mdRecast = require('md-recast');
  
  const formatted = mdRecast(`
This is a nice picture of my cat:
![my cat image](http://cats.com/nice.jpg)
such cute.
`);

console.log(formatted);
// [ { type: 'text', content: 'This is a nice picture of my cat:' },
//  { type: 'picture', content: 'http://cats.com/nice.jpg' },
//  { type: 'text', content: 'such cute.' } ]