hast-util-heading-rank
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -11,3 +11,6 @@ 'use strict' | ||
function headingRank(node) { | ||
var name = (node.type === 'element' ? node.tagName : '').toLowerCase() | ||
var name = ( | ||
(node && node.type === 'element' && node.tagName) || | ||
'' | ||
).toLowerCase() | ||
var code = | ||
@@ -14,0 +17,0 @@ name.length === 2 && name.charCodeAt(0) === lowercaseH |
{ | ||
"name": "hast-util-heading-rank", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "hast utility to get the rank (or depth, level) of headings", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
6148
17