remark-react
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -5,2 +5,2 @@ # Changelog | ||
[releases]: https://github.com/mapbox/remark-react/releases | ||
[releases]: https://github.com/remarkjs/remark-react/releases |
{ | ||
"name": "remark-react", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Compile Markdown to React with remark", | ||
@@ -13,4 +13,4 @@ "license": "MIT", | ||
], | ||
"repository": "mapbox/remark-react", | ||
"bugs": "https://github.com/mapbox/remark-react/issues", | ||
"repository": "remarkjs/remark-react", | ||
"bugs": "https://github.com/remarkjs/remark-react/issues", | ||
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)", | ||
@@ -17,0 +17,0 @@ "contributors": [ |
@@ -37,13 +37,16 @@ # remark-react | ||
```js | ||
var React = require('react') | ||
var remark = require('remark') | ||
var remark2react = require('remark-react') | ||
import React from 'react' | ||
import ReactDOM from 'react-dom' | ||
import remark from 'remark' | ||
import remark2react from 'remark-react' | ||
var App = React.createClass({ | ||
getInitialState() { | ||
return {text: '# hello world'} | ||
}, | ||
class App extends React.Component { | ||
constructor() { | ||
super() | ||
this.state = { text: '# hello world' } | ||
this.onChange = this.onChange.bind(this) | ||
} | ||
onChange(e) { | ||
this.setState({text: e.target.value}) | ||
}, | ||
this.setState({ text: e.target.value }) | ||
} | ||
render() { | ||
@@ -63,5 +66,5 @@ return ( | ||
} | ||
}) | ||
} | ||
React.render(<App />, document.getElementById('app')) | ||
ReactDOM.render(<App />, document.getElementById('root')) | ||
``` | ||
@@ -80,3 +83,3 @@ | ||
How to create elements or components (`Function`). | ||
Default: `require('react').createElement`) | ||
Default: `require('react').createElement` | ||
@@ -86,3 +89,3 @@ ###### `options.fragment` | ||
Create fragments instead of an outer `<div>` if available (`Function`). | ||
Default: `require('react').Fragment`) | ||
Default: `require('react').Fragment` | ||
@@ -131,9 +134,9 @@ ###### `options.sanitize` | ||
[build-badge]: https://img.shields.io/travis/mapbox/remark-react.svg | ||
[build-badge]: https://img.shields.io/travis/remarkjs/remark-react.svg | ||
[build]: https://travis-ci.org/mapbox/remark-react | ||
[build]: https://travis-ci.org/remarkjs/remark-react | ||
[coverage-badge]: https://img.shields.io/codecov/c/github/mapbox/remark-react.svg | ||
[coverage-badge]: https://img.shields.io/codecov/c/github/remarkjs/remark-react.svg | ||
[coverage]: https://codecov.io/github/mapbox/remark-react | ||
[coverage]: https://codecov.io/github/remarkjs/remark-react | ||
@@ -140,0 +143,0 @@ [downloads-badge]: https://img.shields.io/npm/dm/remark-react.svg |
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
9608
175
0