mdast-util-to-hast
Advanced tools
Comparing version 6.0.2 to 7.0.0
@@ -5,3 +5,2 @@ 'use strict' | ||
var trim = require('trim') | ||
var one = require('./one') | ||
@@ -23,3 +22,3 @@ | ||
if (result.value) { | ||
result.value = trim.left(result.value) | ||
result.value = result.value.replace(/^\s+/, '') | ||
} | ||
@@ -30,3 +29,3 @@ | ||
if (head && head.value) { | ||
head.value = trim.left(head.value) | ||
head.value = head.value.replace(/^\s+/, '') | ||
} | ||
@@ -33,0 +32,0 @@ } |
@@ -5,3 +5,2 @@ 'use strict' | ||
var xtend = require('xtend') | ||
var u = require('unist-builder') | ||
@@ -29,3 +28,3 @@ var visit = require('unist-util-visit') | ||
h.augment = augment | ||
h.handlers = xtend(handlers, settings.handlers || {}) | ||
h.handlers = Object.assign({}, handlers, settings.handlers) | ||
@@ -50,3 +49,3 @@ visit(tree, 'footnoteDefinition', onfootnotedefinition) | ||
if (right.type === 'element' && data.hProperties) { | ||
right.properties = xtend(right.properties, data.hProperties) | ||
right.properties = Object.assign({}, right.properties, data.hProperties) | ||
} | ||
@@ -53,0 +52,0 @@ |
{ | ||
"name": "mdast-util-to-hast", | ||
"version": "6.0.2", | ||
"version": "7.0.0", | ||
"description": "Transform mdast to hast", | ||
@@ -13,2 +13,6 @@ "license": "MIT", | ||
"bugs": "https://github.com/syntax-tree/mdast-util-to-hast/issues", | ||
"funding": { | ||
"type": "opencollective", | ||
"url": "https://opencollective.com/unified" | ||
}, | ||
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)", | ||
@@ -27,9 +31,7 @@ "contributors": [ | ||
"mdurl": "^1.0.1", | ||
"trim": "0.0.1", | ||
"trim-lines": "^1.0.0", | ||
"unist-builder": "^1.0.1", | ||
"unist-util-generated": "^1.1.0", | ||
"unist-builder": "^2.0.0", | ||
"unist-util-generated": "^1.0.0", | ||
"unist-util-position": "^3.0.0", | ||
"unist-util-visit": "^1.1.0", | ||
"xtend": "^4.0.1" | ||
"unist-util-visit": "^2.0.0" | ||
}, | ||
@@ -40,7 +42,7 @@ "devDependencies": { | ||
"prettier": "^1.0.0", | ||
"remark-cli": "^6.0.0", | ||
"remark-preset-wooorm": "^5.0.0", | ||
"remark-cli": "^7.0.0", | ||
"remark-preset-wooorm": "^6.0.0", | ||
"tape": "^4.0.0", | ||
"tinyify": "^2.0.0", | ||
"xo": "^0.24.0" | ||
"xo": "^0.25.0" | ||
}, | ||
@@ -75,3 +77,6 @@ "scripts": { | ||
"mdast-util-to-hast.js" | ||
] | ||
], | ||
"rules": { | ||
"unicorn/prefer-includes": "off" | ||
} | ||
}, | ||
@@ -78,0 +83,0 @@ "remarkConfig": { |
@@ -275,3 +275,3 @@ # mdast-util-to-hast | ||
Use [`hast-util-santize`][sanitize] to make the hast tree safe. | ||
Use [`hast-util-sanitize`][sanitize] to make the hast tree safe. | ||
@@ -278,0 +278,0 @@ ## Related |
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
29322
9
625
+ Added@types/unist@2.0.11(transitive)
+ Addedunist-builder@2.0.3(transitive)
+ Addedunist-util-is@4.1.0(transitive)
+ Addedunist-util-visit@2.0.3(transitive)
+ Addedunist-util-visit-parents@3.1.1(transitive)
- Removedtrim@0.0.1
- Removedxtend@^4.0.1
- Removedobject-assign@4.1.1(transitive)
- Removedtrim@0.0.1(transitive)
- Removedunist-builder@1.0.4(transitive)
- Removedxtend@4.0.2(transitive)
Updatedunist-builder@^2.0.0
Updatedunist-util-generated@^1.0.0
Updatedunist-util-visit@^2.0.0