@ueno/markdown-to-prismic-richtext
v1.2.0
Published
Converts markdown to Prismic RichText-compatible objects
Downloads
677
Readme
Markdown to Prismic RichText
For when you're importing a bunch of markdown into a prismic richtext field. Based on the import docs from Prismic.io.
Usage
const convert = require('markdown-to-prismic-richtext');
const richText = convert(yourMarkdown);
// for example use prismic-dom to render
RichText.asHtml(richText);
Development
yarn test --watch