parcel-plugin-react-markdown

Parcel plugin that lets you import markdown files as React components.

Usage no npm install needed!

<script type="module">
  import parcelPluginReactMarkdown from 'https://cdn.skypack.dev/parcel-plugin-react-markdown';
</script>

README

POLITICO

parcel-plugin-react-markdown

A plugin for Parcel.js bundler that renders markdown files into React components using react-markdown.

Use

  1. Install the plugin
$ yarn add parcel-plugin-react-markdown
  1. Import your markdown files!
import React from 'react';
import ReactDOM from 'react-dom';
import MarkdownComponent from './Markdown.md';

ReactDOM.render(<MarkdownComponent/>, document.getElementById('app'));

Test

$ npm test