mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-27 14:59:27 +08:00
chore: minor change
This commit is contained in:
parent
2527663d6a
commit
c73e1f37fe
13
package-lock.json
generated
13
package-lock.json
generated
@ -20130,6 +20130,19 @@
|
||||
"url": "https://github.com/sponsors/ueberdosis"
|
||||
}
|
||||
},
|
||||
"packages/static-renderer": {
|
||||
"name": "@tiptap/static-renderer",
|
||||
"version": "2.6.6",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@tiptap/core": "^2.6.6",
|
||||
"@tiptap/pm": "^2.6.6"
|
||||
},
|
||||
"funding": {
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/ueberdosis"
|
||||
}
|
||||
},
|
||||
"packages/suggestion": {
|
||||
"name": "@tiptap/suggestion",
|
||||
"version": "2.10.0",
|
||||
|
@ -24,7 +24,7 @@ const renderToMarkdown = ({ content }: { content: JSONContent | Node }) => rende
|
||||
return `- ${serializeChildrenToHTMLString(children).trim()}\n`
|
||||
}
|
||||
if (parent?.type.name === 'orderedList') {
|
||||
let number = 1
|
||||
let number = parent.attrs.start || 1
|
||||
|
||||
parent.forEach((parentChild, _offset, index) => {
|
||||
if (node === parentChild) {
|
||||
|
Loading…
Reference in New Issue
Block a user