remark-react
Advanced tools
Comparing version 3.0.2 to 3.1.0
<!--lint disable no-multiple-toplevel-headings--> | ||
# 3.1.0 | ||
* Adds `toHast` option that allows customization at the [mdast-util-to-hast](https://github.com/wooorm/mdast-util-to-hast#api) | ||
level. | ||
# 3.0.2 | ||
@@ -4,0 +9,0 @@ |
@@ -39,2 +39,3 @@ 'use strict'; | ||
var scheme = clean && (typeof settings.sanitize !== 'boolean') ? settings.sanitize : null; | ||
var toHastOptions = settings.toHast || {}; | ||
@@ -83,3 +84,3 @@ /** | ||
properties: {}, | ||
children: toHAST(node).children | ||
children: toHAST(node, toHastOptions).children | ||
}; | ||
@@ -86,0 +87,0 @@ |
{ | ||
"name": "remark-react", | ||
"description": "Compile Markdown to React with remark", | ||
"version": "3.0.2", | ||
"version": "3.1.0", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Titus Wormer", |
@@ -103,2 +103,7 @@ # remark-react | ||
* `toHast` (`object`, default: `{}`) | ||
— Provides options for transforming MDAST document to HAST. | ||
See [mdast-util-to-hast](https://github.com/wooorm/mdast-util-to-hast#api) | ||
for settings. | ||
These can passed to `remark.use()` as a second argument. | ||
@@ -105,0 +110,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
10561
85
130