mdast-util-to-hast
Advanced tools
Comparing version 9.1.1 to 9.1.2
@@ -12,3 +12,3 @@ 'use strict' | ||
var index = rows.length | ||
var align = node.align | ||
var align = node.align || [] | ||
var alignLength = align.length | ||
@@ -25,3 +25,3 @@ var result = [] | ||
name = index === 0 ? 'th' : 'td' | ||
pos = alignLength | ||
pos = alignLength || row.length | ||
out = [] | ||
@@ -41,13 +41,14 @@ | ||
wrap( | ||
[ | ||
h(result[0].position, 'thead', wrap([result[0]], true)), | ||
h( | ||
{ | ||
start: position.start(result[1]), | ||
end: position.end(result[result.length - 1]) | ||
}, | ||
'tbody', | ||
wrap(result.slice(1), true) | ||
) | ||
], | ||
[h(result[0].position, 'thead', wrap([result[0]], true))].concat( | ||
result[1] | ||
? h( | ||
{ | ||
start: position.start(result[1]), | ||
end: position.end(result[result.length - 1]) | ||
}, | ||
'tbody', | ||
wrap(result.slice(1), true) | ||
) | ||
: [] | ||
), | ||
true | ||
@@ -54,0 +55,0 @@ ) |
{ | ||
"name": "mdast-util-to-hast", | ||
"version": "9.1.1", | ||
"version": "9.1.2", | ||
"description": "mdast utility to transform to hast", | ||
@@ -35,3 +35,3 @@ "license": "MIT", | ||
"@types/mdast": "^3.0.0", | ||
"@types/unist": "^2.0.3", | ||
"@types/unist": "^2.0.0", | ||
"mdast-util-definitions": "^3.0.0", | ||
@@ -46,3 +46,3 @@ "mdurl": "^1.0.0", | ||
"browserify": "^16.0.0", | ||
"dtslint": "^3.0.0", | ||
"dtslint": "^4.0.0", | ||
"nyc": "^15.0.0", | ||
@@ -49,0 +49,0 @@ "prettier": "^2.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
32901
698
Updated@types/unist@^2.0.0