react-markdown
Advanced tools
Comparing version 2.4.5 to 2.4.6
@@ -5,2 +5,25 @@ # Change Log | ||
## [2.4.6] - 2017-03-14 | ||
### Changes | ||
- Fix too strict TypeScript definition (Rasmus Eneman) | ||
- Update JSON-loader info in readme to match webpack 2 (Robin Wieruch) | ||
### Added | ||
- Add ability to pass options to the CommonMark parser (Evan Hensleigh) | ||
## [2.4.4] - 2017-01-16 | ||
### Changes | ||
- Fixed TypeScript definitions (Kohei Asai) | ||
## [2.4.3] - 2017-01-12 | ||
### Added | ||
- Added TypeScript definitions (Ibragimov Ruslan) | ||
## [2.4.2] - 2016-07-09 | ||
@@ -7,0 +30,0 @@ |
{ | ||
"name": "react-markdown", | ||
"description": "Renders Markdown as React components", | ||
"version": "2.4.5", | ||
"version": "2.4.6", | ||
"keywords": [ | ||
@@ -32,10 +32,10 @@ "commonmark", | ||
"devDependencies": { | ||
"@types/react": "*", | ||
"@types/react": "^15.0.16", | ||
"chai": "^3.5.0", | ||
"eslint": "^3.0.1", | ||
"eslint": "^3.17.1", | ||
"eslint-config-vaffel": "^5.0.0", | ||
"eslint-plugin-react": "^6.9.0", | ||
"eslint-plugin-react": "^6.10.0", | ||
"gh-pages-deploy": "^0.4.2", | ||
"istanbul": "^0.4.4", | ||
"jsdom": "^9.4.1", | ||
"jsdom": "^9.12.0", | ||
"json-loader": "^0.5.4", | ||
@@ -42,0 +42,0 @@ "lodash.assign": "^4.0.9", |
@@ -39,3 +39,3 @@ # react-markdown | ||
test: /\.json$/, | ||
loader: 'json' | ||
loader: 'json-loader' | ||
}] | ||
@@ -42,0 +42,0 @@ } |
@@ -7,3 +7,2 @@ 'use strict'; | ||
var parser = new Parser(); | ||
var propTypes = React.PropTypes; | ||
@@ -32,3 +31,4 @@ | ||
renderers: propTypes.object, | ||
walker: propTypes.func | ||
walker: propTypes.func, | ||
parserOptions: propTypes.object | ||
}, | ||
@@ -38,3 +38,4 @@ | ||
return { | ||
containerTagName: 'div' | ||
containerTagName: 'div', | ||
parserOptions: {} | ||
}; | ||
@@ -46,2 +47,3 @@ }, | ||
var renderer = new ReactRenderer(this.props); | ||
var parser = new Parser(this.props.parserOptions); | ||
var ast = parser.parse(this.props.source || ''); | ||
@@ -48,0 +50,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
332586
20
1293