@adobe/helix-md2jcr 1.2.12 → 1.2.14

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,17 @@
1
+ ## [1.2.14](https://github.com/adobe/helix-md2jcr/compare/v1.2.13...v1.2.14) (2026-02-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update dependency unist-util-visit to v5.1.0 ([#189](https://github.com/adobe/helix-md2jcr/issues/189)) ([d87f0a4](https://github.com/adobe/helix-md2jcr/commit/d87f0a42e7d52b78e1ca2c2865ce3146aa53517a))
7
+
8
+ ## [1.2.13](https://github.com/adobe/helix-md2jcr/compare/v1.2.12...v1.2.13) (2026-02-02)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * metadata content needs to be encoded ([#186](https://github.com/adobe/helix-md2jcr/issues/186)) ([bea5476](https://github.com/adobe/helix-md2jcr/commit/bea5476460c6d3daf21e79299f41af1c08389ac7))
14
+
1
15
  ## [1.2.12](https://github.com/adobe/helix-md2jcr/compare/v1.2.11...v1.2.12) (2026-01-25)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-md2jcr",
3
- "version": "1.2.12",
3
+ "version": "1.2.14",
4
4
  "description": "Helix Service that converts markdown to JCR content structure",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -53,12 +53,12 @@
53
53
  "unist-util-is": "^6.0.0",
54
54
  "unist-util-remove": "^4.0.0",
55
55
  "unist-util-select": "^5.1.0",
56
- "unist-util-visit": "5.0.0",
56
+ "unist-util-visit": "5.1.0",
57
57
  "xml-formatter": "^3.6.3"
58
58
  },
59
59
  "devDependencies": {
60
- "@adobe/eslint-config-helix": "3.0.16",
61
- "@adobe/helix-mediahandler": "2.9.5",
60
+ "@adobe/eslint-config-helix": "3.0.17",
61
+ "@adobe/helix-mediahandler": "2.10.1",
62
62
  "@commitlint/cli": "^19.6.1",
63
63
  "@commitlint/config-conventional": "^19.6.0",
64
64
  "@semantic-release/changelog": "6.0.3",
@@ -12,7 +12,7 @@
12
12
 
13
13
  /**
14
14
  * The Component class represents a single component located in the
15
- * component-definitions.json file.
15
+ * component-definition.json file.
16
16
  */
17
17
  class Component {
18
18
  /**
@@ -17,7 +17,7 @@
17
17
  import Component from './Component.js';
18
18
 
19
19
  /**
20
- * Get the components from the definitions object, (component-definitions.json).
20
+ * Get the components from the definitions object, (component-definition.json).
21
21
  * @param {DefinitionDef} definitions The Definitions object.
22
22
  * @returns {Component[]} An array of Component objects.
23
23
  */
@@ -64,6 +64,8 @@ function buildPageMetadata(table, models) {
64
64
  if (isMultiField(field)) {
65
65
  value = value.split(',').map((v) => encodeHTMLEntities(v.trim()));
66
66
  value = value.length > 0 ? `[${value.join(',')}]` : '';
67
+ } else {
68
+ value = encodeHTMLEntities(value);
67
69
  }
68
70
  metadata[field.name] = value;
69
71
  }