How to use the netlify-cms-widget-markdown.controlComponent function in netlify-cms-widget-markdown

To help you get started, we’ve selected a few netlify-cms-widget-markdown examples, based on popular ways it is used in public projects.

github karolis-sh / gatsby-mdx / packages / netlify-cms-widget-mdx / src / index.js View on Github external
import React from 'react';
import MarkdownWidget from 'netlify-cms-widget-markdown';
import MdxPreview from './MdxPreview';

export const setupPreview = mdxProps => props => <MdxPreview mdx={mdxProps} {...props} />;

const MdxControl = MarkdownWidget.controlComponent;

export { MdxControl, MdxPreview };

netlify-cms-widget-markdown

Widget for editing markdown in Netlify CMS.

MIT
Latest version published 6 months ago

Package Health Score

76 / 100
Full package analysis

Similar packages