fix: resolve TypeScript errors in frontend build
This commit is contained in:
19
node_modules/@tiptap/extension-document/src/document.ts
generated
vendored
Normal file
19
node_modules/@tiptap/extension-document/src/document.ts
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Node } from '@tiptap/core'
|
||||
|
||||
/**
|
||||
* The default document node which represents the top level node of the editor.
|
||||
* @see https://tiptap.dev/api/nodes/document
|
||||
*/
|
||||
export const Document = Node.create({
|
||||
name: 'doc',
|
||||
topNode: true,
|
||||
content: 'block+',
|
||||
|
||||
renderMarkdown: (node, h) => {
|
||||
if (!node.content) {
|
||||
return ''
|
||||
}
|
||||
|
||||
return h.renderChildren(node.content, '\n\n')
|
||||
},
|
||||
})
|
||||
5
node_modules/@tiptap/extension-document/src/index.ts
generated
vendored
Normal file
5
node_modules/@tiptap/extension-document/src/index.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Document } from './document.js'
|
||||
|
||||
export * from './document.js'
|
||||
|
||||
export default Document
|
||||
Reference in New Issue
Block a user