react-md-file

2.0.0 • Public • Published

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

Package Sidebar

Install

npm i react-md-file

Weekly Downloads

23

Version

2.0.0

License

MIT

Unpacked Size

23.2 MB

Total Files

20

Last publish

Collaborators

  • gazzwi86