@doist/typist 6.0.7 → 6.0.9
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 +35 -35
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [6.0.9](https://github.com/Doist/typist/compare/v6.0.8...v6.0.9) (2024-08-20)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **deps:** update tiptap packages to v2.6.4 ([#875](https://github.com/Doist/typist/issues/875)) ([a28caac](https://github.com/Doist/typist/commit/a28caac30770e7062971c662c0577f78f8f8d8af))
|
|
6
|
+
|
|
7
|
+
## [6.0.8](https://github.com/Doist/typist/compare/v6.0.7...v6.0.8) (2024-08-16)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- Empty list items returns incorrectly formatted Markdown ([#874](https://github.com/Doist/typist/issues/874)) ([9c8bcb5](https://github.com/Doist/typist/commit/9c8bcb5e00040a24b0287a227baed27eb2ecf0d7))
|
|
12
|
+
|
|
1
13
|
## [6.0.7](https://github.com/Doist/typist/compare/v6.0.6...v6.0.7) (2024-08-14)
|
|
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.9",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://typist.doist.dev/",
|
|
7
7
|
"repository": "https://github.com/Doist/typist",
|
|
@@ -45,37 +45,37 @@
|
|
|
45
45
|
"validate:pre-push": "run-s test"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@tiptap/core": "2.6.
|
|
49
|
-
"@tiptap/extension-blockquote": "2.6.
|
|
50
|
-
"@tiptap/extension-bold": "2.6.
|
|
51
|
-
"@tiptap/extension-bullet-list": "2.6.
|
|
52
|
-
"@tiptap/extension-character-count": "2.6.
|
|
53
|
-
"@tiptap/extension-code": "2.6.
|
|
54
|
-
"@tiptap/extension-code-block": "2.6.
|
|
55
|
-
"@tiptap/extension-document": "2.6.
|
|
56
|
-
"@tiptap/extension-dropcursor": "2.6.
|
|
57
|
-
"@tiptap/extension-gapcursor": "2.6.
|
|
58
|
-
"@tiptap/extension-hard-break": "2.6.
|
|
59
|
-
"@tiptap/extension-heading": "2.6.
|
|
60
|
-
"@tiptap/extension-history": "2.6.
|
|
61
|
-
"@tiptap/extension-horizontal-rule": "2.6.
|
|
62
|
-
"@tiptap/extension-image": "2.6.
|
|
63
|
-
"@tiptap/extension-italic": "2.6.
|
|
64
|
-
"@tiptap/extension-link": "2.6.
|
|
65
|
-
"@tiptap/extension-list-item": "2.6.
|
|
66
|
-
"@tiptap/extension-list-keymap": "2.6.
|
|
67
|
-
"@tiptap/extension-ordered-list": "2.6.
|
|
68
|
-
"@tiptap/extension-paragraph": "2.6.
|
|
69
|
-
"@tiptap/extension-placeholder": "2.6.
|
|
70
|
-
"@tiptap/extension-strike": "2.6.
|
|
71
|
-
"@tiptap/extension-task-item": "2.6.
|
|
72
|
-
"@tiptap/extension-task-list": "2.6.
|
|
73
|
-
"@tiptap/extension-text": "2.6.
|
|
74
|
-
"@tiptap/extension-text-style": "2.6.
|
|
75
|
-
"@tiptap/extension-typography": "2.6.
|
|
76
|
-
"@tiptap/pm": "2.6.
|
|
77
|
-
"@tiptap/react": "2.6.
|
|
78
|
-
"@tiptap/suggestion": "2.6.
|
|
48
|
+
"@tiptap/core": "2.6.4",
|
|
49
|
+
"@tiptap/extension-blockquote": "2.6.4",
|
|
50
|
+
"@tiptap/extension-bold": "2.6.4",
|
|
51
|
+
"@tiptap/extension-bullet-list": "2.6.4",
|
|
52
|
+
"@tiptap/extension-character-count": "2.6.4",
|
|
53
|
+
"@tiptap/extension-code": "2.6.4",
|
|
54
|
+
"@tiptap/extension-code-block": "2.6.4",
|
|
55
|
+
"@tiptap/extension-document": "2.6.4",
|
|
56
|
+
"@tiptap/extension-dropcursor": "2.6.4",
|
|
57
|
+
"@tiptap/extension-gapcursor": "2.6.4",
|
|
58
|
+
"@tiptap/extension-hard-break": "2.6.4",
|
|
59
|
+
"@tiptap/extension-heading": "2.6.4",
|
|
60
|
+
"@tiptap/extension-history": "2.6.4",
|
|
61
|
+
"@tiptap/extension-horizontal-rule": "2.6.4",
|
|
62
|
+
"@tiptap/extension-image": "2.6.4",
|
|
63
|
+
"@tiptap/extension-italic": "2.6.4",
|
|
64
|
+
"@tiptap/extension-link": "2.6.4",
|
|
65
|
+
"@tiptap/extension-list-item": "2.6.4",
|
|
66
|
+
"@tiptap/extension-list-keymap": "2.6.4",
|
|
67
|
+
"@tiptap/extension-ordered-list": "2.6.4",
|
|
68
|
+
"@tiptap/extension-paragraph": "2.6.4",
|
|
69
|
+
"@tiptap/extension-placeholder": "2.6.4",
|
|
70
|
+
"@tiptap/extension-strike": "2.6.4",
|
|
71
|
+
"@tiptap/extension-task-item": "2.6.4",
|
|
72
|
+
"@tiptap/extension-task-list": "2.6.4",
|
|
73
|
+
"@tiptap/extension-text": "2.6.4",
|
|
74
|
+
"@tiptap/extension-text-style": "2.6.4",
|
|
75
|
+
"@tiptap/extension-typography": "2.6.4",
|
|
76
|
+
"@tiptap/pm": "2.6.4",
|
|
77
|
+
"@tiptap/react": "2.6.4",
|
|
78
|
+
"@tiptap/suggestion": "2.6.4",
|
|
79
79
|
"prosemirror-codemark": "0.4.2"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"@types/react-dom": "18.3.0",
|
|
104
104
|
"@types/react-syntax-highlighter": "15.5.13",
|
|
105
105
|
"@types/turndown": "5.0.5",
|
|
106
|
-
"@types/unist": "3.0.
|
|
106
|
+
"@types/unist": "3.0.3",
|
|
107
107
|
"@vitejs/plugin-react": "4.3.1",
|
|
108
108
|
"boring-avatars": "1.10.2",
|
|
109
109
|
"classnames": "2.5.1",
|
|
@@ -133,11 +133,11 @@
|
|
|
133
133
|
"rehype-raw": "7.0.0",
|
|
134
134
|
"remark-gfm": "4.0.0",
|
|
135
135
|
"rimraf": "6.0.1",
|
|
136
|
-
"semantic-release": "24.
|
|
136
|
+
"semantic-release": "24.1.0",
|
|
137
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.25.0",
|
|
141
141
|
"typescript": "5.5.4",
|
|
142
142
|
"typescript-plugin-css-modules": "5.1.0",
|
|
143
143
|
"vitest": "2.0.5"
|