@doist/typist 6.0.7 → 6.0.8
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,9 @@
|
|
|
1
|
+
## [6.0.8](https://github.com/Doist/typist/compare/v6.0.7...v6.0.8) (2024-08-16)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- Empty list items returns incorrectly formatted Markdown ([#874](https://github.com/Doist/typist/issues/874)) ([9c8bcb5](https://github.com/Doist/typist/commit/9c8bcb5e00040a24b0287a227baed27eb2ecf0d7))
|
|
6
|
+
|
|
1
7
|
## [6.0.7](https://github.com/Doist/typist/compare/v6.0.6...v6.0.7) (2024-08-14)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
|
@@ -34,7 +34,7 @@ const INITIAL_TURNDOWN_OPTIONS = {
|
|
|
34
34
|
const parentNode = node.parentNode;
|
|
35
35
|
// Return the list marker for empty bullet list items
|
|
36
36
|
if (node.nodeName === 'UL' || (parentNode?.nodeName === 'UL' && node.nodeName === 'LI')) {
|
|
37
|
-
return `${BULLET_LIST_MARKER} `;
|
|
37
|
+
return `${BULLET_LIST_MARKER} \n`;
|
|
38
38
|
}
|
|
39
39
|
// Return the list marker for empty ordered list items
|
|
40
40
|
if (node.nodeName === 'OL' || (parentNode?.nodeName === 'OL' && node.nodeName === 'LI')) {
|
|
@@ -42,7 +42,7 @@ const INITIAL_TURNDOWN_OPTIONS = {
|
|
|
42
42
|
? parentNode.getAttribute('start')
|
|
43
43
|
: node.getAttribute('start');
|
|
44
44
|
const index = Array.prototype.indexOf.call(parentNode.children, node);
|
|
45
|
-
return `${start ? Number(start) + index : index + 1}. `;
|
|
45
|
+
return `${start ? Number(start) + index : index + 1}. \n`;
|
|
46
46
|
}
|
|
47
47
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
48
48
|
// @ts-ignore: The `Turndown.Node` type does not include `isBlock`
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@doist/typist",
|
|
3
3
|
"description": "The mighty Tiptap-based rich-text editor React component that powers Doist products.",
|
|
4
|
-
"version": "6.0.
|
|
4
|
+
"version": "6.0.8",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://typist.doist.dev/",
|
|
7
7
|
"repository": "https://github.com/Doist/typist",
|