chore: minor change

This commit is contained in:
Nick the Sick 2024-08-27 14:18:23 +02:00
parent 2527663d6a
commit c73e1f37fe
No known key found for this signature in database
GPG Key ID: F575992F156E5BCC
2 changed files with 14 additions and 1 deletions

13
package-lock.json generated
View File

@ -20130,6 +20130,19 @@
"url": "https://github.com/sponsors/ueberdosis" "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": { "packages/suggestion": {
"name": "@tiptap/suggestion", "name": "@tiptap/suggestion",
"version": "2.10.0", "version": "2.10.0",

View File

@ -24,7 +24,7 @@ const renderToMarkdown = ({ content }: { content: JSONContent | Node }) => rende
return `- ${serializeChildrenToHTMLString(children).trim()}\n` return `- ${serializeChildrenToHTMLString(children).trim()}\n`
} }
if (parent?.type.name === 'orderedList') { if (parent?.type.name === 'orderedList') {
let number = 1 let number = parent.attrs.start || 1
parent.forEach((parentChild, _offset, index) => { parent.forEach((parentChild, _offset, index) => {
if (node === parentChild) { if (node === parentChild) {