Skip to content

gazzwi86/react-md-file

Repository files navigation

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

About

A react component for rendering a markdown file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published