2.0.0 • Published 6 years ago

react-md-file v2.0.0

Weekly downloads
403
License
MIT
Repository
github
Last release
6 years ago

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 />