Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

remark-react

Package Overview
Dependencies
Maintainers
2
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-react - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

2

changelog.md

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc