@doist/typist 6.0.6 → 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 +12 -0
- package/dist/serializers/markdown/markdown.js +2 -2
- package/package.json +43 -43
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
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
|
+
|
|
7
|
+
## [6.0.7](https://github.com/Doist/typist/compare/v6.0.6...v6.0.7) (2024-08-14)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **deps:** update tiptap packages to v2.6.2 ([#872](https://github.com/Doist/typist/issues/872)) ([f75fb41](https://github.com/Doist/typist/commit/f75fb41bc56c89f0d7218e13d28a02cda2c9b52f))
|
|
12
|
+
|
|
1
13
|
## [6.0.6](https://github.com/Doist/typist/compare/v6.0.5...v6.0.6) (2024-08-12)
|
|
2
14
|
|
|
3
15
|
### 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",
|
|
@@ -45,55 +45,55 @@
|
|
|
45
45
|
"validate:pre-push": "run-s test"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@tiptap/core": "2.
|
|
49
|
-
"@tiptap/extension-blockquote": "2.
|
|
50
|
-
"@tiptap/extension-bold": "2.
|
|
51
|
-
"@tiptap/extension-bullet-list": "2.
|
|
52
|
-
"@tiptap/extension-character-count": "2.
|
|
53
|
-
"@tiptap/extension-code": "2.
|
|
54
|
-
"@tiptap/extension-code-block": "2.
|
|
55
|
-
"@tiptap/extension-document": "2.
|
|
56
|
-
"@tiptap/extension-dropcursor": "2.
|
|
57
|
-
"@tiptap/extension-gapcursor": "2.
|
|
58
|
-
"@tiptap/extension-hard-break": "2.
|
|
59
|
-
"@tiptap/extension-heading": "2.
|
|
60
|
-
"@tiptap/extension-history": "2.
|
|
61
|
-
"@tiptap/extension-horizontal-rule": "2.
|
|
62
|
-
"@tiptap/extension-image": "2.
|
|
63
|
-
"@tiptap/extension-italic": "2.
|
|
64
|
-
"@tiptap/extension-link": "2.
|
|
65
|
-
"@tiptap/extension-list-item": "2.
|
|
66
|
-
"@tiptap/extension-list-keymap": "2.
|
|
67
|
-
"@tiptap/extension-ordered-list": "2.
|
|
68
|
-
"@tiptap/extension-paragraph": "2.
|
|
69
|
-
"@tiptap/extension-placeholder": "2.
|
|
70
|
-
"@tiptap/extension-strike": "2.
|
|
71
|
-
"@tiptap/extension-task-item": "2.
|
|
72
|
-
"@tiptap/extension-task-list": "2.
|
|
73
|
-
"@tiptap/extension-text": "2.
|
|
74
|
-
"@tiptap/extension-text-style": "2.
|
|
75
|
-
"@tiptap/extension-typography": "2.
|
|
76
|
-
"@tiptap/pm": "2.
|
|
77
|
-
"@tiptap/react": "2.
|
|
78
|
-
"@tiptap/suggestion": "2.
|
|
48
|
+
"@tiptap/core": "2.6.2",
|
|
49
|
+
"@tiptap/extension-blockquote": "2.6.2",
|
|
50
|
+
"@tiptap/extension-bold": "2.6.2",
|
|
51
|
+
"@tiptap/extension-bullet-list": "2.6.2",
|
|
52
|
+
"@tiptap/extension-character-count": "2.6.2",
|
|
53
|
+
"@tiptap/extension-code": "2.6.2",
|
|
54
|
+
"@tiptap/extension-code-block": "2.6.2",
|
|
55
|
+
"@tiptap/extension-document": "2.6.2",
|
|
56
|
+
"@tiptap/extension-dropcursor": "2.6.2",
|
|
57
|
+
"@tiptap/extension-gapcursor": "2.6.2",
|
|
58
|
+
"@tiptap/extension-hard-break": "2.6.2",
|
|
59
|
+
"@tiptap/extension-heading": "2.6.2",
|
|
60
|
+
"@tiptap/extension-history": "2.6.2",
|
|
61
|
+
"@tiptap/extension-horizontal-rule": "2.6.2",
|
|
62
|
+
"@tiptap/extension-image": "2.6.2",
|
|
63
|
+
"@tiptap/extension-italic": "2.6.2",
|
|
64
|
+
"@tiptap/extension-link": "2.6.2",
|
|
65
|
+
"@tiptap/extension-list-item": "2.6.2",
|
|
66
|
+
"@tiptap/extension-list-keymap": "2.6.2",
|
|
67
|
+
"@tiptap/extension-ordered-list": "2.6.2",
|
|
68
|
+
"@tiptap/extension-paragraph": "2.6.2",
|
|
69
|
+
"@tiptap/extension-placeholder": "2.6.2",
|
|
70
|
+
"@tiptap/extension-strike": "2.6.2",
|
|
71
|
+
"@tiptap/extension-task-item": "2.6.2",
|
|
72
|
+
"@tiptap/extension-task-list": "2.6.2",
|
|
73
|
+
"@tiptap/extension-text": "2.6.2",
|
|
74
|
+
"@tiptap/extension-text-style": "2.6.2",
|
|
75
|
+
"@tiptap/extension-typography": "2.6.2",
|
|
76
|
+
"@tiptap/pm": "2.6.2",
|
|
77
|
+
"@tiptap/react": "2.6.2",
|
|
78
|
+
"@tiptap/suggestion": "2.6.2",
|
|
79
79
|
"prosemirror-codemark": "0.4.2"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@doist/eslint-config": "11.1.0",
|
|
83
83
|
"@doist/prettier-config": "4.0.0",
|
|
84
|
-
"@doist/reactist": "
|
|
84
|
+
"@doist/reactist": "25.0.0",
|
|
85
85
|
"@mdx-js/react": "3.0.1",
|
|
86
86
|
"@semantic-release/changelog": "6.0.3",
|
|
87
87
|
"@semantic-release/exec": "6.0.3",
|
|
88
88
|
"@semantic-release/git": "10.0.1",
|
|
89
|
-
"@storybook/addon-a11y": "8.2.
|
|
90
|
-
"@storybook/addon-essentials": "8.2.
|
|
91
|
-
"@storybook/blocks": "8.2.
|
|
89
|
+
"@storybook/addon-a11y": "8.2.9",
|
|
90
|
+
"@storybook/addon-essentials": "8.2.9",
|
|
91
|
+
"@storybook/blocks": "8.2.9",
|
|
92
92
|
"@storybook/csf": "0.1.11",
|
|
93
|
-
"@storybook/manager-api": "8.2.
|
|
93
|
+
"@storybook/manager-api": "8.2.9",
|
|
94
94
|
"@storybook/mdx2-csf": "1.1.0",
|
|
95
|
-
"@storybook/react": "8.2.
|
|
96
|
-
"@storybook/react-vite": "8.2.
|
|
95
|
+
"@storybook/react": "8.2.9",
|
|
96
|
+
"@storybook/react-vite": "8.2.9",
|
|
97
97
|
"@testing-library/dom": "10.4.0",
|
|
98
98
|
"@testing-library/jest-dom": "6.4.8",
|
|
99
99
|
"@testing-library/react": "16.0.0",
|
|
@@ -122,22 +122,22 @@
|
|
|
122
122
|
"ignore-sync": "7.0.1",
|
|
123
123
|
"is-ci": "3.0.1",
|
|
124
124
|
"jsdom": "24.1.1",
|
|
125
|
-
"lint-staged": "15.2.
|
|
125
|
+
"lint-staged": "15.2.9",
|
|
126
126
|
"npm-run-all2": "6.2.2",
|
|
127
127
|
"prettier": "3.2.5",
|
|
128
128
|
"react": "18.3.1",
|
|
129
129
|
"react-dom": "18.3.1",
|
|
130
|
-
"react-icons": "5.
|
|
130
|
+
"react-icons": "5.3.0",
|
|
131
131
|
"react-markdown": "9.0.1",
|
|
132
132
|
"react-syntax-highlighter": "15.5.0",
|
|
133
133
|
"rehype-raw": "7.0.0",
|
|
134
134
|
"remark-gfm": "4.0.0",
|
|
135
135
|
"rimraf": "6.0.1",
|
|
136
136
|
"semantic-release": "24.0.0",
|
|
137
|
-
"storybook": "8.2.
|
|
137
|
+
"storybook": "8.2.9",
|
|
138
138
|
"storybook-css-modules": "1.0.8",
|
|
139
139
|
"tippy.js": "6.3.7",
|
|
140
|
-
"type-fest": "4.
|
|
140
|
+
"type-fest": "4.24.0",
|
|
141
141
|
"typescript": "5.5.4",
|
|
142
142
|
"typescript-plugin-css-modules": "5.1.0",
|
|
143
143
|
"vitest": "2.0.5"
|