Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/robbestad/react-markdown-to-html

React Component that converts a Markdown file to HTML
https://github.com/robbestad/react-markdown-to-html

Last synced: about 1 month ago
JSON representation

React Component that converts a Markdown file to HTML

Awesome Lists containing this project

README

        

# Markdown to HTML

[React][1] Component that converts a Markdown file to HTML

Demo at [opensourceprojects.robbestad.com][2]

## Installation

% npm install react-markdown-to-html --save

## Usage

#### With JSX

var Markdown2HTML = require('react-markdown-to-html');
MyComponent = React.createClass({
render: function() {
return (

);
}
});

#### Without JSX

var Markdown2HTML = require('react-markdown-to-html');
MyComponent = React.createClass({displayName: "MyComponent",
render: function() {
return (
React.createElement(Markdown2HTML, {src: "README.md"})
);
}
});

[1]: https://facebook.github.io/react
[2]: http://opensourceprojects.robbestad.com/#/markdown