datocms-html-to-structured-text
Advanced tools
Comparing version 1.0.12 to 1.0.13
@@ -318,4 +318,7 @@ "use strict"; | ||
['target', 'rel', 'title'].forEach(function (attr) { | ||
if (node.properties[attr]) { | ||
meta_1.push({ id: attr, value: node.properties[attr] }); | ||
var value = Array.isArray(node.properties[attr]) | ||
? node.properties[attr].join(' ') | ||
: node.properties[attr]; | ||
if (value) { | ||
meta_1.push({ id: attr, value: value }); | ||
} | ||
@@ -322,0 +325,0 @@ }); |
{ | ||
"name": "datocms-html-to-structured-text", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "Convert HTML (or a `hast` syntax tree) to a valid DatoCMS Structured Text `dast` document", | ||
@@ -34,3 +34,3 @@ "keywords": [ | ||
"dependencies": { | ||
"datocms-structured-text-utils": "^1.0.12", | ||
"datocms-structured-text-utils": "^1.0.13", | ||
"extend": "^3.0.2", | ||
@@ -49,3 +49,3 @@ "hast-util-from-dom": "^3.0.0", | ||
}, | ||
"gitHead": "14fea0f8c40a1c3494fe4a94509a013d3d38ab7c" | ||
"gitHead": "ef471c31d6d6cbacda7364881d7cd1c5ca00d199" | ||
} |
Sorry, the diff of this file is not supported yet
92540
1205