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: 3 months ago
JSON representation
React Component that converts a Markdown file to HTML
- Host: GitHub
- URL: https://github.com/robbestad/react-markdown-to-html
- Owner: robbestad
- License: isc
- Created: 2015-01-01T23:44:36.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-24T11:35:06.000Z (over 10 years ago)
- Last Synced: 2025-06-16T10:48:48.522Z (5 months ago)
- Language: JavaScript
- Size: 543 KB
- Stars: 10
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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