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 7.0.0 to 7.0.1

7

package.json
{
"name": "remark-react",
"version": "7.0.0",
"version": "7.0.1",
"description": "remark plugin to transform to React",

@@ -54,4 +54,5 @@ "license": "MIT",

"prettier": "^2.0.0",
"remark": "^11.0.0",
"remark-cli": "^7.0.0",
"remark": "^12.0.0",
"remark-cli": "^8.0.0",
"remark-footnotes": "^1.0.0",
"remark-frontmatter": "^1.0.0",

@@ -58,0 +59,0 @@ "remark-preset-wooorm": "^6.0.0",

@@ -62,3 +62,3 @@ # remark-react

.use(remark2react)
.processSync(this.state.text).contents
.processSync(this.state.text).result
}

@@ -80,2 +80,11 @@ </div>

Typically, [**unified**][unified] compilers return `string`.
This compiler returns a `ReactElement`.
When using `.process` or `.processSync`, the value at `file.result` (or when
using `.stringify`, the return value), is a `ReactElement`.
When using TypeScript, cast the type on your side.
> ℹ️ In [`unified@9.0.0`][unified-9], the result of `.process` changed from
> ~~`file.contents`~~ to `file.result`.
##### `options`

@@ -227,1 +236,5 @@

[integrations]: https://github.com/remarkjs/remark-html#integrations
[unified]: https://github.com/unifiedjs/unified
[unified-9]: https://github.com/unifiedjs/unified/releases/tag/9.0.0
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