@adobe/helix-md2jcr 1.2.12 → 1.2.13
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
|
+
## [1.2.13](https://github.com/adobe/helix-md2jcr/compare/v1.2.12...v1.2.13) (2026-02-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* metadata content needs to be encoded ([#186](https://github.com/adobe/helix-md2jcr/issues/186)) ([bea5476](https://github.com/adobe/helix-md2jcr/commit/bea5476460c6d3daf21e79299f41af1c08389ac7))
|
|
7
|
+
|
|
1
8
|
## [1.2.12](https://github.com/adobe/helix-md2jcr/compare/v1.2.11...v1.2.12) (2026-01-25)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-md2jcr",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.13",
|
|
4
4
|
"description": "Helix Service that converts markdown to JCR content structure",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"xml-formatter": "^3.6.3"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@adobe/eslint-config-helix": "3.0.
|
|
60
|
+
"@adobe/eslint-config-helix": "3.0.17",
|
|
61
61
|
"@adobe/helix-mediahandler": "2.9.5",
|
|
62
62
|
"@commitlint/cli": "^19.6.1",
|
|
63
63
|
"@commitlint/config-conventional": "^19.6.0",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import Component from './Component.js';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* Get the components from the definitions object, (component-
|
|
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
|
}
|