@adobe/helix-md2jcr 1.1.15 → 1.1.16

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.16](https://github.com/adobe/helix-md2jcr/compare/v1.1.15...v1.1.16) (2025-05-05)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * allow raw html to be inserted in richtext ([#88](https://github.com/adobe/helix-md2jcr/issues/88)) ([35980a3](https://github.com/adobe/helix-md2jcr/commit/35980a3d5f5ddffd097224e1f1efcc50823cd118))
7
+
1
8
  ## [1.1.15](https://github.com/adobe/helix-md2jcr/compare/v1.1.14...v1.1.15) (2025-04-28)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-md2jcr",
3
- "version": "1.1.15",
3
+ "version": "1.1.16",
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.7.0",
58
+ "@adobe/helix-mediahandler": "2.7.2",
59
59
  "@commitlint/cli": "^19.6.1",
60
60
  "@commitlint/config-conventional": "^19.6.0",
61
61
  "@semantic-release/changelog": "6.0.3",
@@ -137,7 +137,13 @@ function extractPropertiesForNode(field, currentNode, properties) {
137
137
  if (currentNode.type === 'wrapper') {
138
138
  // combine all the children into a single string, but wrap them in a paragraph
139
139
  value = currentNode.children.reduce((acc, node) => {
140
- let str = toHtml(toHast(node));
140
+ const hast = toHast(node, {
141
+ allowDangerousHtml: true,
142
+ });
143
+
144
+ let str = toHtml(hast, {
145
+ allowDangerousHtml: true,
146
+ });
141
147
 
142
148
  // don't wrap nodes that are already paragraphs or code blocks
143
149
  if (node.type !== 'paragraph' && node.type !== 'code') {