For when you're importing a bunch of markdown into a prismic richtext field. Based on the import docs from Prismic.io.
const convert = require('markdown-to-prismic-richtext');
const richText = convert(yourMarkdown);
// for example use prismic-dom to render
RichText.asHtml(richText);
yarn test --watch