File tree 3 files changed +13
-9
lines changed 3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 1
- const React = require ( 'react' ) ;
1
+ var React = require ( 'react' ) ;
2
+
3
+ module . exports = function ( code ) {
4
+ var module = { exports : null } ;
5
+ var createFactory = React . createFactory ,
6
+ createElement = React . createElement ;
2
7
3
- module . exports = ( code ) => {
4
- const module = { exports : null } ;
5
- const { createFactory, createElement} = React ;
6
8
eval ( code ) ; /* eslint no-eval: 0 */
7
9
return module . exports ;
8
10
} ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-static-markdown" ,
3
- "version" : " 0.0.1 " ,
3
+ "version" : " 0.0.2 " ,
4
4
"description" : " Markdown files utils for react-static" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change 1
- const MDXC = require ( 'mdxc' ) ;
1
+ var MDXC = require ( 'mdxc' ) ;
2
2
3
- const mdxc = new MDXC ( {
3
+ var mdxc = new MDXC ( {
4
4
commonJS : true ,
5
5
pragma : 'createElement' ,
6
6
linkify : true ,
7
- typographer : true ,
7
+ typographer : true
8
8
} ) ;
9
9
10
- module . exports = markdown => mdxc . render ( markdown ) ;
10
+ module . exports = function ( markdown ) {
11
+ return mdxc . render ( markdown ) ;
12
+ } ;
You can’t perform that action at this time.
0 commit comments