datocms-structured-text-generic-html-renderer
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -102,6 +102,6 @@ "use strict"; | ||
return acc.concat([ | ||
renderNode('br', { key: "br-" + index }), | ||
renderText(line, "line-" + index), | ||
renderNode('br', { key: key + "-br-" + index }), | ||
renderText(line, key + "-line-" + index), | ||
]); | ||
}, [renderText(lines[0], 'line-first')]) | ||
}, [renderText(lines[0], key + "-line-first")]) | ||
: renderText(node.value, key); | ||
@@ -108,0 +108,0 @@ return marks.reduce(function (children, mark) { |
@@ -96,6 +96,6 @@ var __assign = (this && this.__assign) || function () { | ||
return acc.concat([ | ||
renderNode('br', { key: "br-" + index }), | ||
renderText(line, "line-" + index), | ||
renderNode('br', { key: key + "-br-" + index }), | ||
renderText(line, key + "-line-" + index), | ||
]); | ||
}, [renderText(lines[0], 'line-first')]) | ||
}, [renderText(lines[0], key + "-line-first")]) | ||
: renderText(node.value, key); | ||
@@ -102,0 +102,0 @@ return marks.reduce(function (children, mark) { |
{ | ||
"name": "datocms-structured-text-generic-html-renderer", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "A set of Typescript types and helpers to work with DatoCMS Structured Text fields", | ||
@@ -37,3 +37,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "a6d9f3c373026c368400e39e007bfbed1fa8632c" | ||
"gitHead": "c64337e0f7fccdc549851d7c8962743991538ce6" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
23755