mdast-util-to-hast
Advanced tools
Comparing version 2.3.0 to 2.4.0
@@ -11,3 +11,3 @@ 'use strict'; | ||
function unknown(h, node) { | ||
if ('value' in node) { | ||
if (text(node)) { | ||
return h.augment(node, u('text', node.value)); | ||
@@ -31,1 +31,12 @@ } | ||
} | ||
/* Check if the node should be renderered a text node. */ | ||
function text(node) { | ||
var data = node.data || {}; | ||
if (has(data, 'hName') || has(data, 'hProperties') || has(data, 'hChildren')) { | ||
return false; | ||
} | ||
return 'value' in node; | ||
} |
{ | ||
"name": "mdast-util-to-hast", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "Transform MDAST to HAST", | ||
@@ -36,7 +36,7 @@ "license": "MIT", | ||
"devDependencies": { | ||
"browserify": "^13.0.1", | ||
"browserify": "^14.0.0", | ||
"esmangle": "^1.0.1", | ||
"nyc": "^10.0.0", | ||
"remark-cli": "^2.0.0", | ||
"remark-preset-wooorm": "^1.0.0", | ||
"remark-cli": "^3.0.0", | ||
"remark-preset-wooorm": "^2.0.0", | ||
"tape": "^4.0.0", | ||
@@ -46,3 +46,3 @@ "xo": "^0.17.1" | ||
"scripts": { | ||
"build-md": "remark . --quiet --frail", | ||
"build-md": "remark . -qfo", | ||
"build-bundle": "browserify index.js --bare -s mdastUtilToHAST > mdast-util-to-hast.js", | ||
@@ -71,5 +71,4 @@ "build-mangle": "esmangle mdast-util-to-hast.js > mdast-util-to-hast.min.js", | ||
"remarkConfig": { | ||
"output": true, | ||
"presets": "wooorm" | ||
"plugins": ["preset-wooorm"] | ||
} | ||
} |
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
20938
536