@adobe/helix-md2jcr 1.5.0 → 1.5.2
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.5.2](https://github.com/adobe/helix-md2jcr/compare/v1.5.1...v1.5.2) (2026-07-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* performing a release ([ba91cef](https://github.com/adobe/helix-md2jcr/commit/ba91ceff6cfd603b6db83b5400d6a66f5642cdae))
|
|
7
|
+
|
|
8
|
+
## [1.5.1](https://github.com/adobe/helix-md2jcr/compare/v1.5.0...v1.5.1) (2026-06-23)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update adobe fixes ([#219](https://github.com/adobe/helix-md2jcr/issues/219)) ([dfd4c7d](https://github.com/adobe/helix-md2jcr/commit/dfd4c7d22b3427afd98877a69721cbce819f0587))
|
|
14
|
+
|
|
1
15
|
# [1.5.0](https://github.com/adobe/helix-md2jcr/compare/v1.4.1...v1.5.0) (2026-06-17)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-md2jcr",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "Helix Service that converts markdown to JCR content structure",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -32,8 +32,9 @@
|
|
|
32
32
|
"homepage": "https://github.com/adobe/helix-md2jcr#readme",
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@adobe/fetch": "4.3.0",
|
|
35
|
-
"@adobe/helix-markdown-support": "7.1.
|
|
35
|
+
"@adobe/helix-markdown-support": "7.1.19",
|
|
36
36
|
"@adobe/helix-shared-process-queue": "3.1.9",
|
|
37
|
+
"@adobe/mdast-util-gridtables": "4.0.19",
|
|
37
38
|
"@adobe/remark-gridtables": "3.0.20",
|
|
38
39
|
"entities": "^6.0.0",
|
|
39
40
|
"github-slugger": "2.0.0",
|
|
@@ -77,9 +78,9 @@
|
|
|
77
78
|
"mocha": "11.7.6",
|
|
78
79
|
"mocha-multi-reporters": "1.5.1",
|
|
79
80
|
"nock": "13.5.6",
|
|
80
|
-
"semantic-release": "25.0.
|
|
81
|
+
"semantic-release": "25.0.5",
|
|
81
82
|
"unist-util-inspect": "8.1.0",
|
|
82
|
-
"yauzl": "3.
|
|
83
|
+
"yauzl": "3.4.0"
|
|
83
84
|
},
|
|
84
85
|
"lint-staged": {
|
|
85
86
|
"*.js": "eslint"
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
+
import { mdast2hastGridTablesHandler } from '@adobe/mdast-util-gridtables';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* Creates a hast handler that maps a custom mdast node type to an inline HTML element.
|
|
@@ -32,9 +33,16 @@ function formatHandler(tagName) {
|
|
|
32
33
|
* Custom hast handlers for mdast node types that mdast-util-to-hast does not recognize
|
|
33
34
|
* by default. Pass these as the `handlers` option wherever toHast() is called so that
|
|
34
35
|
* inline formatting round-trips correctly through the mdast → hast → HTML pipeline.
|
|
36
|
+
*
|
|
37
|
+
* `gridTable` nodes show up here when a cell's content is itself a full markdown
|
|
38
|
+
* document containing a nested grid table (@adobe/remark-gridtables allows this).
|
|
39
|
+
* Without this handler mdast-util-to-hast falls back to its unknown-node handler,
|
|
40
|
+
* which just wraps every gtHeader/gtBody/gtRow/gtCell in a <div>, discarding the
|
|
41
|
+
* table semantics (and any colSpan/rowSpan/align data on the cells).
|
|
35
42
|
*/
|
|
36
43
|
export const customHastHandlers = {
|
|
37
44
|
superscript: formatHandler('sup'),
|
|
38
45
|
subscript: formatHandler('sub'),
|
|
39
46
|
underline: formatHandler('u'),
|
|
47
|
+
gridTable: mdast2hastGridTablesHandler(),
|
|
40
48
|
};
|