/markdown-to-prismic-richtext

Converts markdown to prismic richtext objects.

Primary LanguageTypeScriptMIT LicenseMIT

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