@adobe/helix-md2jcr 1.1.30 → 1.1.31

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.1.31](https://github.com/adobe/helix-md2jcr/compare/v1.1.30...v1.1.31) (2025-08-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * custom sections/normal sections should identify their model ([#137](https://github.com/adobe/helix-md2jcr/issues/137)) ([2d69b7a](https://github.com/adobe/helix-md2jcr/commit/2d69b7a84dfd4717cd1fe3757a0c47dff28ccb6a)), closes [#136](https://github.com/adobe/helix-md2jcr/issues/136)
7
+
1
8
  ## [1.1.30](https://github.com/adobe/helix-md2jcr/compare/v1.1.29...v1.1.30) (2025-08-12)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-md2jcr",
3
- "version": "1.1.30",
3
+ "version": "1.1.31",
4
4
  "description": "Helix Service that converts markdown to JCR content structure",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -54,8 +54,8 @@
54
54
  "xml-formatter": "^3.6.3"
55
55
  },
56
56
  "devDependencies": {
57
- "@adobe/eslint-config-helix": "3.0.8",
58
- "@adobe/helix-mediahandler": "2.7.22",
57
+ "@adobe/eslint-config-helix": "3.0.9",
58
+ "@adobe/helix-mediahandler": "2.7.23",
59
59
  "@commitlint/cli": "^19.6.1",
60
60
  "@commitlint/config-conventional": "^19.6.0",
61
61
  "@semantic-release/changelog": "6.0.3",
@@ -134,7 +134,10 @@ function findSectionMetadata(children, models) {
134
134
  const result = processMetadataRows(rows, model);
135
135
 
136
136
  return {
137
- attributes: result.attributes,
137
+ attributes: {
138
+ ...result.attributes,
139
+ model: sectionModelId || 'section',
140
+ },
138
141
  modelFields: result.modelFields,
139
142
  };
140
143
  }
@@ -146,6 +149,9 @@ function findSectionMetadata(children, models) {
146
149
  }
147
150
 
148
151
  return {
152
+ attributes: {
153
+ model: sectionModel.id,
154
+ },
149
155
  modelFields: getModelFieldNames(sectionModel),
150
156
  };
151
157
  }