remark-react
Advanced tools
Comparing version 7.0.0 to 7.0.1
{ | ||
"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 |
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
12735
238
12
15611