@adobe/helix-md2jcr 1.1.13 → 1.1.15
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.1.15](https://github.com/adobe/helix-md2jcr/compare/v1.1.14...v1.1.15) (2025-04-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* when generating title text use titleType ([#86](https://github.com/adobe/helix-md2jcr/issues/86)) ([a973478](https://github.com/adobe/helix-md2jcr/commit/a97347837b4bc4ccd54b42efe8d771283d24954d))
|
|
7
|
+
|
|
8
|
+
## [1.1.14](https://github.com/adobe/helix-md2jcr/compare/v1.1.13...v1.1.14) (2025-04-24)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* support parsing links in blocks ([d391736](https://github.com/adobe/helix-md2jcr/commit/d3917369ce248c35e30ed36231eb4b15bb893a13))
|
|
14
|
+
|
|
1
15
|
## [1.1.13](https://github.com/adobe/helix-md2jcr/compare/v1.1.12...v1.1.13) (2025-04-15)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-md2jcr",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.15",
|
|
4
4
|
"description": "Helix Service that converts markdown to JCR content structure",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@adobe/eslint-config-helix": "2.0.9",
|
|
58
|
-
"@adobe/helix-mediahandler": "2.
|
|
58
|
+
"@adobe/helix-mediahandler": "2.7.0",
|
|
59
59
|
"@commitlint/cli": "^19.6.1",
|
|
60
60
|
"@commitlint/config-conventional": "^19.6.0",
|
|
61
61
|
"@semantic-release/changelog": "6.0.3",
|
|
@@ -107,8 +107,9 @@ function collapseField(id, fields, node, parentNode, properties) {
|
|
|
107
107
|
properties[field.name] = link.getType(parentNode);
|
|
108
108
|
}
|
|
109
109
|
} else if (link.supports(node)) {
|
|
110
|
-
if (suffix === 'Text') {
|
|
111
|
-
|
|
110
|
+
if (suffix === 'Text' || suffix === 'Title') {
|
|
111
|
+
const value = link.getProperties(node)[suffix.toLowerCase()];
|
|
112
|
+
properties[field.name] = encodeHTMLEntities(value);
|
|
112
113
|
} else {
|
|
113
114
|
properties[field.name] = encodeHTMLEntities(node[suffix.toLowerCase()]);
|
|
114
115
|
}
|
|
@@ -47,7 +47,7 @@ function heading(context) {
|
|
|
47
47
|
|
|
48
48
|
title = Handlebars.Utils.escapeExpression(context.children.map(parseInlineElements).join(''));
|
|
49
49
|
|
|
50
|
-
return `<title${uniqueName} sling:resourceType="core/franklin/components/title/v1/title" jcr:primaryType="nt:unstructured" title="${title}"
|
|
50
|
+
return `<title${uniqueName} sling:resourceType="core/franklin/components/title/v1/title" jcr:primaryType="nt:unstructured" title="${title}" titleType="h${depth}"/>\n`;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
export default heading;
|