react-md-file

A component for rendering markdown files with React.

Usage no npm install needed!

<script type="module">
  import reactMdFile from 'https://cdn.skypack.dev/react-md-file';
</script>

README

React Markdown file

A react component for retrieving and rendering markdown files.

Installing

Install via npm/yarn:

npm install --save react-md-file

Usage

Then simply require and pass a file name. If you wish the nest the resulting markup (move h1s to h2s), set the nested property to true.

import ReactMd from 'react-md-file';

<ReactMd markdown="# hello world" />
<ReactMd fileName="README.md" />
<ReactMd fileName="README.md" nested />