@adobe/helix-markdown-support 5.0.8 → 5.0.10
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
|
+
## [5.0.10](https://github.com/adobe/helix-markdown-support/compare/v5.0.9...v5.0.10) (2022-10-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* endless loop with space before nested formats ([#148](https://github.com/adobe/helix-markdown-support/issues/148)) ([80072a1](https://github.com/adobe/helix-markdown-support/commit/80072a12b94a703613d2a2930f8c03f800f744d0)), closes [#147](https://github.com/adobe/helix-markdown-support/issues/147)
|
|
7
|
+
|
|
8
|
+
## [5.0.9](https://github.com/adobe/helix-markdown-support/compare/v5.0.8...v5.0.9) (2022-09-28)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update dependency mdast-util-to-hast to v12.2.4 ([#146](https://github.com/adobe/helix-markdown-support/issues/146)) ([db9fd20](https://github.com/adobe/helix-markdown-support/commit/db9fd20ff6c435b6e685741800a20d8ee1aad621))
|
|
14
|
+
|
|
1
15
|
## [5.0.8](https://github.com/adobe/helix-markdown-support/compare/v5.0.7...v5.0.8) (2022-09-28)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-markdown-support",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.10",
|
|
4
4
|
"description": "Helix Markdown Support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"hast-util-to-html": "8.0.3",
|
|
30
30
|
"js-yaml": "4.1.0",
|
|
31
31
|
"mdast-util-from-markdown": "1.2.0",
|
|
32
|
-
"mdast-util-to-hast": "12.2.
|
|
32
|
+
"mdast-util-to-hast": "12.2.4",
|
|
33
33
|
"mdast-util-to-markdown": "1.3.0",
|
|
34
34
|
"micromark-util-character": "1.1.0",
|
|
35
35
|
"micromark-util-symbol": "1.0.1",
|
|
@@ -82,6 +82,10 @@ export default function sanitizeTextAndFormats(tree) {
|
|
|
82
82
|
value: first.value.substring(0, first.value.length - trimmed.length),
|
|
83
83
|
};
|
|
84
84
|
first.value = trimmed;
|
|
85
|
+
if (!trimmed) {
|
|
86
|
+
// remove
|
|
87
|
+
children.shift();
|
|
88
|
+
}
|
|
85
89
|
if (isFormat(parent.type)) {
|
|
86
90
|
// special case for nested formats, discard the text
|
|
87
91
|
// ignore
|