@adobe/helix-html-pipeline 6.13.0 → 6.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [6.14.0](https://github.com/adobe/helix-html-pipeline/compare/v6.13.0...v6.14.0) (2024-08-01)
2
+
3
+
4
+ ### Features
5
+
6
+ * make json-ld metadata more robust ([#658](https://github.com/adobe/helix-html-pipeline/issues/658)) ([3d3e5dc](https://github.com/adobe/helix-html-pipeline/commit/3d3e5dc5e39a601a5f9b225d6409f2cfbdefc138))
7
+
1
8
  # [6.13.0](https://github.com/adobe/helix-html-pipeline/compare/v6.12.10...v6.13.0) (2024-07-30)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "6.13.0",
3
+ "version": "6.14.0",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -43,6 +43,12 @@ function readBlockConfig($block) {
43
43
  const [$name, $value] = $row.children;
44
44
  const name = toMetaName(toString($name));
45
45
  if (name) {
46
+ // special case for json-ld. don't apply any special formatting
47
+ if (name.toLowerCase() === 'json-ld') {
48
+ config[name] = toString($value).trim();
49
+ return;
50
+ }
51
+
46
52
  let value;
47
53
  const $firstChild = childNodes($value)[0];
48
54
  if ($firstChild) {