添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
高兴的鸭蛋  ·  [WPF] ...·  5 月前    · 
八块腹肌的大熊猫  ·  曹德智_百度百科·  5 月前    · 
纯真的橙子  ·  Workflow commands for ...·  7 月前    · 
深情的伤疤  ·  咪咕阅读-小说阅读·  9 月前    · 

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"})