JSPM

  • Created
  • Published
  • Downloads 67
  • Score
    100M100P100Q65613F
  • License MIT

Package Exports

  • md2react

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (md2react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

md2react

npm install --save md2react

See md2react playground

Not well tested yet.

Example

global.React = require('react');
var md2react = require('md2react');

var md = '# Hello';
var html = React.renderToString(md2react(md));
//'<div data-reactid=".58nba97pxc" data-react-checksum="-55236619"><h1 data-reactid=".58nba97pxc.0"><span data-reactid=".58nba97pxc.0.0">Hello</span></h1></div>'

LICENSE

MIT