JSPM

  • Created
  • Published
  • Downloads 52
  • Score
    100M100P100Q66097F
  • 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

This is conceptual implement so not tested well.

Example

md = '''
# Hello
hello

- a
- b

1. 1
2. 2

`a`

------

<span></span>

\`\`\`
bbb
\`\`\`

**AA**

*BB*

[foo](/foo)

![img](/img.png)

> aaa
> bbb


|  TH  |  TH  |
| ---- | ---- |
|  TD  |  TD  |
|  TD  |  TD  |
'''

global.React = require('react');
md2react = require('md2react');
html = React.renderToString(md2react(md));