react-markdown-to-html

1.0.11 • Public • Published

Markdown to HTML

React Component that converts a Markdown file to HTML

Demo at opensourceprojects.robbestad.com

Installation

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

Usage

With JSX

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

Without JSX

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

/react-markdown-to-html/

    Package Sidebar

    Install

    npm i react-markdown-to-html

    Weekly Downloads

    10

    Version

    1.0.11

    License

    ISC

    Last publish

    Collaborators

    • svenanders