mdast-util-to-hast
Advanced tools
Comparing version 10.0.0 to 10.0.1
@@ -24,3 +24,3 @@ 'use strict' | ||
if (head.children.length !== 0) { | ||
if (head.children.length > 0) { | ||
head.children.unshift(u('text', ' ')) | ||
@@ -27,0 +27,0 @@ } |
@@ -54,3 +54,12 @@ 'use strict' | ||
if (right.type === 'element' && data.hName) { | ||
if (data.hName) { | ||
if (right.type !== 'element') { | ||
right = { | ||
type: 'element', | ||
tagName: '', | ||
properties: {}, | ||
children: [] | ||
} | ||
} | ||
right.tagName = data.hName | ||
@@ -57,0 +66,0 @@ } |
@@ -26,3 +26,3 @@ 'use strict' | ||
if (loose && nodes.length !== 0) { | ||
if (loose && nodes.length > 0) { | ||
result.push(u('text', '\n')) | ||
@@ -29,0 +29,0 @@ } |
{ | ||
"name": "mdast-util-to-hast", | ||
"version": "10.0.0", | ||
"version": "10.0.1", | ||
"description": "mdast utility to transform to hast", | ||
@@ -44,16 +44,16 @@ "license": "MIT", | ||
"devDependencies": { | ||
"browserify": "^16.0.0", | ||
"browserify": "^17.0.0", | ||
"dtslint": "^4.0.0", | ||
"nyc": "^15.0.0", | ||
"prettier": "^2.0.0", | ||
"remark-cli": "^8.0.0", | ||
"remark-preset-wooorm": "^7.0.0", | ||
"remark-cli": "^9.0.0", | ||
"remark-preset-wooorm": "^8.0.0", | ||
"tape": "^5.0.0", | ||
"tinyify": "^3.0.0", | ||
"xo": "^0.33.0" | ||
"xo": "^0.34.0" | ||
}, | ||
"scripts": { | ||
"format": "remark . -qfo && prettier --write . && xo --fix", | ||
"build-bundle": "browserify index.js -s mdastUtilToHast > mdast-util-to-hast.js", | ||
"build-mangle": "browserify index.js -s mdastUtilToHast -p tinyify > mdast-util-to-hast.min.js", | ||
"format": "remark . -qfo && prettier -w . --loglevel warn && xo --fix", | ||
"build-bundle": "browserify index.js -s mdastUtilToHast -o mdast-util-to-hast.js", | ||
"build-mangle": "browserify index.js -s mdastUtilToHast -o mdast-util-to-hast.min.js -p tinyify", | ||
"build": "npm run build-bundle && npm run build-mangle", | ||
@@ -60,0 +60,0 @@ "test-api": "node test", |
@@ -313,5 +313,5 @@ # mdast-util-to-hast | ||
[build-badge]: https://img.shields.io/travis/syntax-tree/mdast-util-to-hast.svg | ||
[build-badge]: https://github.com/syntax-tree/mdast-util-to-hast/workflows/main/badge.svg | ||
[build]: https://travis-ci.org/syntax-tree/mdast-util-to-hast | ||
[build]: https://github.com/syntax-tree/mdast-util-to-hast/actions | ||
@@ -318,0 +318,0 @@ [coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/mdast-util-to-hast.svg |
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
32664
698