From Markdown to Divs. This component is for when you're tired of manually converting Markdown to HTML and want a one stop solution
npm install react-markdown-to-html[React][1] Component that converts a Markdown file to HTML
Demo at [opensourceprojects.robbestad.com][2]
% npm install react-markdown-to-html --save
#### 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