hast-util-to-parse5
Advanced tools
Comparing version 4.0.0 to 4.0.1
{ | ||
"name": "hast-util-to-parse5", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Transform HAST to Parse5’s AST", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -43,3 +43,3 @@ # hast-util-to-parse5 [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov] | ||
### `toParse5(node)` | ||
### `toParse5(tree[, space])` | ||
@@ -49,2 +49,11 @@ Transform a [HAST Node][node] to an `ASTNode` according to the default | ||
###### `space` | ||
Whether the root of the given tree is in the `'html'` or `'svg'` space (enum, | ||
`'svg'` or `'html'`, default: `'html'`). | ||
If an `svg` element is found in the HTML space, `toParse5` automatically | ||
switches to the SVG space when entering the element, and switches back when | ||
leaving. | ||
## Contribute | ||
@@ -51,0 +60,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
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
8542
94
0