@depup/prosemirror-markdown 1.13.4-depup.0 → 1.13.5-depup.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 +6 -0
- package/CONTRIBUTING.md +22 -18
- package/README.md +4 -4
- package/changes.json +3 -3
- package/dist/index.cjs +2 -1
- package/dist/index.js +2 -1
- package/package.json +14 -12
- package/src/README.md +3 -3
- package/src/to_markdown.ts +1 -1
package/CHANGELOG.md
CHANGED
package/CONTRIBUTING.md
CHANGED
|
@@ -12,7 +12,7 @@ Community discussion, questions, and informal bug reporting is done on the
|
|
|
12
12
|
## Submitting bug reports
|
|
13
13
|
|
|
14
14
|
Report bugs on the
|
|
15
|
-
[
|
|
15
|
+
[issue tracker](https://code.haverbeke.berlin/prosemirror/prosemirror/issues).
|
|
16
16
|
Before reporting a bug, please read these pointers.
|
|
17
17
|
|
|
18
18
|
- The issue tracker is for *bugs*, not requests for help. Questions
|
|
@@ -34,21 +34,28 @@ Before reporting a bug, please read these pointers.
|
|
|
34
34
|
|
|
35
35
|
## Contributing code
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
Code generated by a language model is not welcome in this project.
|
|
38
|
+
Please don't waste my time with it.
|
|
38
39
|
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
If you want to make a change that involves a significant overhaul of
|
|
41
|
+
the code or introduces a user-visible new feature, create an
|
|
42
|
+
[issue](https://code.haverbeke.berlin/prosemirror/prosemirror/issues/)
|
|
43
|
+
first with your proposal.
|
|
44
|
+
|
|
45
|
+
- Make sure you have a [Codeberg](https://codeberg.org/user/sign_up)
|
|
46
|
+
or [GitHub](https://github.com/signup/free) account.
|
|
47
|
+
|
|
48
|
+
- Use that to create a [code.haverbeke.berlin
|
|
49
|
+
account](https://code.haverbeke.berlin/user/login).
|
|
50
|
+
|
|
51
|
+
- Fork the relevant repository.
|
|
41
52
|
|
|
42
53
|
- Create a local checkout of the code. You can use the
|
|
43
|
-
[main repository](https://
|
|
54
|
+
[main repository](https://code.haverbeke.berlin/prosemirror/prosemirror) to
|
|
44
55
|
easily check out all core modules.
|
|
45
56
|
|
|
46
57
|
- Make your changes, and commit them
|
|
47
58
|
|
|
48
|
-
- Follow the code style of the rest of the project (see below). Run
|
|
49
|
-
`npm run lint` (in the main repository checkout) to make sure that
|
|
50
|
-
the linter is happy.
|
|
51
|
-
|
|
52
59
|
- If your changes are easy to test or likely to regress, add tests in
|
|
53
60
|
the relevant `test/` directory. Either put them in an existing
|
|
54
61
|
`test-*.js` file, if they fit there, or add a new file.
|
|
@@ -56,13 +63,13 @@ Before reporting a bug, please read these pointers.
|
|
|
56
63
|
- Make sure all tests pass. Run `npm run test` to verify tests pass
|
|
57
64
|
(you will need Node.js v6+).
|
|
58
65
|
|
|
59
|
-
- Submit a pull request
|
|
60
|
-
|
|
66
|
+
- Submit a pull request. Don't put more than one feature/fix in a
|
|
67
|
+
single pull request.
|
|
61
68
|
|
|
62
69
|
By contributing code to ProseMirror you
|
|
63
70
|
|
|
64
71
|
- Agree to license the contributed code under the project's [MIT
|
|
65
|
-
license](https://
|
|
72
|
+
license](https://code.haverbeke.berlin/prosemirror/prosemirror/blob/main/LICENSE).
|
|
66
73
|
|
|
67
74
|
- Confirm that you have the right to contribute and license the code
|
|
68
75
|
in question. (Either you hold all rights on the code, or the rights
|
|
@@ -82,19 +89,16 @@ By contributing code to ProseMirror you
|
|
|
82
89
|
- Follow the surrounding code when it comes to spacing, brace
|
|
83
90
|
placement, etc.
|
|
84
91
|
|
|
85
|
-
- Brace-less single-statement bodies are encouraged
|
|
86
|
-
don't impact readability
|
|
92
|
+
- Brace-less single-statement bodies are encouraged whenever they
|
|
93
|
+
don't impact readability.
|
|
87
94
|
|
|
88
|
-
- [getdocs](https://
|
|
95
|
+
- [getdocs-ts](https://code.haverbeke.berlin/marijn/getdocs-ts)-style doc comments
|
|
89
96
|
above items that are part of the public API.
|
|
90
97
|
|
|
91
98
|
- When documenting non-public items, you can put the type after a
|
|
92
99
|
single colon, so that getdocs doesn't pick it up and add it to the
|
|
93
100
|
API reference.
|
|
94
101
|
|
|
95
|
-
- The linter (`npm run lint`) complains about unused variables and
|
|
96
|
-
functions. Prefix their names with an underscore to muffle it.
|
|
97
|
-
|
|
98
102
|
- ProseMirror does *not* follow JSHint or JSLint prescribed style.
|
|
99
103
|
Patches that try to 'fix' code to pass one of these linters will not
|
|
100
104
|
be accepted.
|
package/README.md
CHANGED
|
@@ -13,8 +13,8 @@ npm install @depup/prosemirror-markdown
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [prosemirror-markdown](https://www.npmjs.com/package/prosemirror-markdown) @ 1.13.
|
|
17
|
-
| Processed | 2026-
|
|
16
|
+
| Original | [prosemirror-markdown](https://www.npmjs.com/package/prosemirror-markdown) @ 1.13.5 |
|
|
17
|
+
| Processed | 2026-07-21 |
|
|
18
18
|
| Smoke test | passed |
|
|
19
19
|
| Deps updated | 3 |
|
|
20
20
|
|
|
@@ -23,8 +23,8 @@ npm install @depup/prosemirror-markdown
|
|
|
23
23
|
| Dependency | From | To |
|
|
24
24
|
|------------|------|-----|
|
|
25
25
|
| @types/markdown-it | ^14.0.0 | ^14.1.2 |
|
|
26
|
-
| markdown-it | ^14.0.0 | ^14.
|
|
27
|
-
| prosemirror-model | ^1.25.0 | ^1.25.
|
|
26
|
+
| markdown-it | ^14.0.0 | ^14.3.0 |
|
|
27
|
+
| prosemirror-model | ^1.25.0 | ^1.25.11 |
|
|
28
28
|
|
|
29
29
|
---
|
|
30
30
|
|
package/changes.json
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
"bumped": {
|
|
3
3
|
"markdown-it": {
|
|
4
4
|
"from": "^14.0.0",
|
|
5
|
-
"to": "^14.
|
|
5
|
+
"to": "^14.3.0"
|
|
6
6
|
},
|
|
7
7
|
"prosemirror-model": {
|
|
8
8
|
"from": "^1.25.0",
|
|
9
|
-
"to": "^1.25.
|
|
9
|
+
"to": "^1.25.11"
|
|
10
10
|
},
|
|
11
11
|
"@types/markdown-it": {
|
|
12
12
|
"from": "^14.0.0",
|
|
13
13
|
"to": "^14.1.2"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
|
-
"timestamp": "2026-
|
|
16
|
+
"timestamp": "2026-07-21T17:29:51.614Z",
|
|
17
17
|
"totalUpdated": 3
|
|
18
18
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -622,7 +622,8 @@ var defaultMarkdownSerializer = new MarkdownSerializer({
|
|
|
622
622
|
});
|
|
623
623
|
},
|
|
624
624
|
ordered_list: function ordered_list(state, node) {
|
|
625
|
-
var
|
|
625
|
+
var _a;
|
|
626
|
+
var start = (_a = node.attrs.order) !== null && _a !== void 0 ? _a : 1;
|
|
626
627
|
var maxW = String(start + node.childCount - 1).length;
|
|
627
628
|
var space = state.repeat(" ", maxW + 2);
|
|
628
629
|
state.renderList(node, space, function (i) {
|
package/dist/index.js
CHANGED
|
@@ -439,7 +439,8 @@ const defaultMarkdownSerializer = new MarkdownSerializer({
|
|
|
439
439
|
state.renderList(node, " ", () => (node.attrs.bullet || "*") + " ");
|
|
440
440
|
},
|
|
441
441
|
ordered_list(state, node) {
|
|
442
|
-
|
|
442
|
+
var _a;
|
|
443
|
+
let start = (_a = node.attrs.order) !== null && _a !== void 0 ? _a : 1;
|
|
443
444
|
let maxW = String(start + node.childCount - 1).length;
|
|
444
445
|
let space = state.repeat(" ", maxW + 2);
|
|
445
446
|
state.renderList(node, space, i => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depup/prosemirror-markdown",
|
|
3
|
-
"version": "1.13.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.13.5-depup.8",
|
|
4
|
+
"description": "ProseMirror Markdown integration (with updated dependencies)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
],
|
|
22
22
|
"repository": {
|
|
23
23
|
"type": "git",
|
|
24
|
-
"url": "git://
|
|
24
|
+
"url": "git+https://code.haverbeke.berlin/prosemirror/prosemirror-markdown.git"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"markdown-it": "^14.
|
|
28
|
-
"prosemirror-model": "^1.25.
|
|
27
|
+
"markdown-it": "^14.3.0",
|
|
28
|
+
"prosemirror-model": "^1.25.11",
|
|
29
29
|
"@types/markdown-it": "^14.1.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
@@ -37,20 +37,22 @@
|
|
|
37
37
|
"test": "pm-runtests"
|
|
38
38
|
},
|
|
39
39
|
"keywords": [
|
|
40
|
+
"prosemirror-markdown",
|
|
40
41
|
"depup",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
42
|
+
"updated-dependencies",
|
|
43
|
+
"security",
|
|
44
|
+
"latest",
|
|
45
|
+
"patched"
|
|
44
46
|
],
|
|
45
47
|
"depup": {
|
|
46
48
|
"changes": {
|
|
47
49
|
"markdown-it": {
|
|
48
50
|
"from": "^14.0.0",
|
|
49
|
-
"to": "^14.
|
|
51
|
+
"to": "^14.3.0"
|
|
50
52
|
},
|
|
51
53
|
"prosemirror-model": {
|
|
52
54
|
"from": "^1.25.0",
|
|
53
|
-
"to": "^1.25.
|
|
55
|
+
"to": "^1.25.11"
|
|
54
56
|
},
|
|
55
57
|
"@types/markdown-it": {
|
|
56
58
|
"from": "^14.0.0",
|
|
@@ -59,8 +61,8 @@
|
|
|
59
61
|
},
|
|
60
62
|
"depsUpdated": 3,
|
|
61
63
|
"originalPackage": "prosemirror-markdown",
|
|
62
|
-
"originalVersion": "1.13.
|
|
63
|
-
"processedAt": "2026-
|
|
64
|
+
"originalVersion": "1.13.5",
|
|
65
|
+
"processedAt": "2026-07-21T17:29:56.835Z",
|
|
64
66
|
"smokeTest": "passed"
|
|
65
67
|
}
|
|
66
68
|
}
|
package/src/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# prosemirror-markdown
|
|
2
2
|
|
|
3
|
-
[ [**WEBSITE**](http://prosemirror.net) | [**ISSUES**](https://
|
|
3
|
+
[ [**WEBSITE**](http://prosemirror.net) | [**ISSUES**](https://code.haverbeke.berlin/prosemirror/prosemirror-markdown/issues) | [**FORUM**](https://discuss.prosemirror.net) | [**GITTER**](https://gitter.im/ProseMirror/prosemirror) ]
|
|
4
4
|
|
|
5
5
|
This is a (non-core) module for [ProseMirror](http://prosemirror.net).
|
|
6
6
|
ProseMirror is a well-behaved rich semantic content editor based on
|
|
@@ -14,10 +14,10 @@ a parser and serializer to convert between ProseMirror documents in
|
|
|
14
14
|
that schema and CommonMark/Markdown text.
|
|
15
15
|
|
|
16
16
|
This code is released under an
|
|
17
|
-
[MIT license](https://
|
|
17
|
+
[MIT license](https://code.haverbeke.berlin/prosemirror/prosemirror/src/branch/main/LICENSE).
|
|
18
18
|
There's a [forum](http://discuss.prosemirror.net) for general
|
|
19
19
|
discussion and support requests, and the
|
|
20
|
-
[
|
|
20
|
+
[bug tracker](https://code.haverbeke.berlin/prosemirror/prosemirror/issues)
|
|
21
21
|
is the place to report issues.
|
|
22
22
|
|
|
23
23
|
We aim to be an inclusive, welcoming community. To make that explicit,
|
package/src/to_markdown.ts
CHANGED
|
@@ -99,7 +99,7 @@ export const defaultMarkdownSerializer = new MarkdownSerializer({
|
|
|
99
99
|
state.renderList(node, " ", () => (node.attrs.bullet || "*") + " ")
|
|
100
100
|
},
|
|
101
101
|
ordered_list(state, node) {
|
|
102
|
-
let start = node.attrs.order
|
|
102
|
+
let start = node.attrs.order ?? 1
|
|
103
103
|
let maxW = String(start + node.childCount - 1).length
|
|
104
104
|
let space = state.repeat(" ", maxW + 2)
|
|
105
105
|
state.renderList(node, space, i => {
|